()
| 147 | // Running a wat that traps. |
| 148 | #[test] |
| 149 | fn run_wasmtime_unreachable_wat() -> Result<()> { |
| 150 | let wasm = build_wasm("tests/all/cli_tests/unreachable.wat")?; |
| 151 | let output = run_wasmtime_for_output(&[wasm.path().to_str().unwrap(), "-Ccache=n"], None)?; |
| 152 | |
| 153 | assert_ne!(output.stderr, b""); |
| 154 | assert_eq!(output.stdout, b""); |
| 155 | |
| 156 | assert_trap_code(&output.status); |
| 157 | Ok(()) |
| 158 | } |
| 159 | |
| 160 | fn assert_trap_code(status: &ExitStatus) { |
| 161 | let code = status |
nothing calls this directly
no test coverage detected