MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / exit125_wasi_snapshot1

Function exit125_wasi_snapshot1

tests/all/cli_tests.rs:279–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277// Exit with a valid non-zero exit code, snapshot1 edition.
278#[test]
279fn exit125_wasi_snapshot1() -> Result<()> {
280 let wasm = build_wasm("tests/all/cli_tests/exit125_wasi_snapshot1.wat")?;
281 let output = run_wasmtime_for_output(&["-Ccache=n", wasm.path().to_str().unwrap()], None)?;
282 assert_eq!(output.status.code().unwrap(), 125);
283 Ok(())
284}
285
286// Exit with an invalid non-zero exit code, snapshot0 edition.
287#[test]

Callers

nothing calls this directly

Calls 6

run_wasmtime_for_outputFunction · 0.85
OkFunction · 0.85
to_strMethod · 0.80
build_wasmFunction · 0.70
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected