Skip to content

Commit

Permalink
Lift Windows exit code restriction in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
badeend committed Oct 7, 2024
1 parent 151d8ae commit 9685d49
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/all/cli_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,7 @@ fn exit125_wasi_snapshot0() -> Result<()> {
None,
)?;
dbg!(&output);
if cfg!(windows) {
assert_eq!(output.status.code().unwrap(), 1);
} else {
assert_eq!(output.status.code().unwrap(), 125);
}
assert_eq!(output.status.code().unwrap(), 125);
}
Ok(())
}
Expand All @@ -301,11 +297,7 @@ fn exit125_wasi_snapshot0() -> Result<()> {
fn exit125_wasi_snapshot1() -> Result<()> {
let wasm = build_wasm("tests/all/cli_tests/exit125_wasi_snapshot1.wat")?;
let output = run_wasmtime_for_output(&["-Ccache=n", wasm.path().to_str().unwrap()], None)?;
if cfg!(windows) {
assert_eq!(output.status.code().unwrap(), 1);
} else {
assert_eq!(output.status.code().unwrap(), 125);
}
assert_eq!(output.status.code().unwrap(), 125);
Ok(())
}

Expand Down

0 comments on commit 9685d49

Please sign in to comment.