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

Function p2_cli_exit_with_code

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

Source from the content-addressed store, hash-verified

1328
1329 #[test]
1330 fn p2_cli_exit_with_code() -> Result<()> {
1331 let output = get_wasmtime_command()?
1332 .args(&[
1333 "run",
1334 "-Wcomponent-model",
1335 "-Scli-exit-with-code",
1336 P2_CLI_EXIT_WITH_CODE_COMPONENT,
1337 ])
1338 .output()?;
1339 assert!(!output.status.success());
1340 assert_eq!(output.status.code(), Some(42));
1341 Ok(())
1342 }
1343
1344 #[test]
1345 fn p2_cli_exit_panic() -> Result<()> {

Callers

nothing calls this directly

Calls 4

get_wasmtime_commandFunction · 0.85
OkFunction · 0.85
outputMethod · 0.80
argsMethod · 0.45

Tested by

no test coverage detected