()
| 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<()> { |
nothing calls this directly
no test coverage detected