()
| 262 | // Exit with a valid non-zero exit code, snapshot0 edition. |
| 263 | #[test] |
| 264 | fn exit125_wasi_snapshot0() -> Result<()> { |
| 265 | let wasm = build_wasm("tests/all/cli_tests/exit125_wasi_snapshot0.wat")?; |
| 266 | for preview2 in ["-Spreview2=n", "-Spreview2=y"] { |
| 267 | let output = run_wasmtime_for_output( |
| 268 | &["-Ccache=n", preview2, wasm.path().to_str().unwrap()], |
| 269 | None, |
| 270 | )?; |
| 271 | dbg!(&output); |
| 272 | assert_eq!(output.status.code().unwrap(), 125); |
| 273 | } |
| 274 | Ok(()) |
| 275 | } |
| 276 | |
| 277 | // Exit with a valid non-zero exit code, snapshot1 edition. |
| 278 | #[test] |
nothing calls this directly
no test coverage detected