diff options
-rw-r--r-- | cli/tests/integration/js_unit_tests.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cli/tests/integration/js_unit_tests.rs b/cli/tests/integration/js_unit_tests.rs index 1f2ebf062..b4dc88a9f 100644 --- a/cli/tests/integration/js_unit_tests.rs +++ b/cli/tests/integration/js_unit_tests.rs @@ -36,6 +36,12 @@ fn js_unit_tests() { .expect("failed to spawn script"); let status = deno.wait().expect("failed to wait for the child process"); - assert_eq!(Some(0), status.code()); + #[cfg(unix)] + assert_eq!( + std::os::unix::process::ExitStatusExt::signal(&status), + None, + "Deno should not have died with a signal" + ); + assert_eq!(Some(0), status.code(), "Deno should have exited cleanly"); assert!(status.success()); } |