()
| 238 | // Exit with a valid non-zero exit code, snapshot0 edition. |
| 239 | #[test] |
| 240 | fn exit2_wasi_snapshot0() -> Result<()> { |
| 241 | let wasm = build_wasm("tests/all/cli_tests/exit2_wasi_snapshot0.wat")?; |
| 242 | |
| 243 | for preview2 in ["-Spreview2=n", "-Spreview2=y"] { |
| 244 | let output = run_wasmtime_for_output( |
| 245 | &["-Ccache=n", preview2, wasm.path().to_str().unwrap()], |
| 246 | None, |
| 247 | )?; |
| 248 | assert_eq!(output.status.code().unwrap(), 2); |
| 249 | } |
| 250 | Ok(()) |
| 251 | } |
| 252 | |
| 253 | // Exit with a valid non-zero exit code, snapshot1 edition. |
| 254 | #[test] |
nothing calls this directly
no test coverage detected