()
| 303 | // Exit with an invalid non-zero exit code, snapshot1 edition. |
| 304 | #[test] |
| 305 | fn exit126_wasi_snapshot1() -> Result<()> { |
| 306 | let wasm = build_wasm("tests/all/cli_tests/exit126_wasi_snapshot1.wat")?; |
| 307 | let output = run_wasmtime_for_output(&[wasm.path().to_str().unwrap(), "-Ccache=n"], None)?; |
| 308 | assert_eq!(output.status.code().unwrap(), 1); |
| 309 | assert!(output.stdout.is_empty()); |
| 310 | assert!(String::from_utf8_lossy(&output.stderr).contains("invalid exit status")); |
| 311 | Ok(()) |
| 312 | } |
| 313 | |
| 314 | // Run a minimal command program. |
| 315 | #[test] |
nothing calls this directly
no test coverage detected