diff options
-rw-r--r-- | cli/tests/unit_node/child_process_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/unit_node/child_process_test.ts b/cli/tests/unit_node/child_process_test.ts index f8de5b6f6..9abd5c1e6 100644 --- a/cli/tests/unit_node/child_process_test.ts +++ b/cli/tests/unit_node/child_process_test.ts @@ -626,12 +626,12 @@ Deno.test({ name: "[node/child_process spawn] supports SIGIOT signal", ignore: Deno.build.os === "windows", async fn() { - const script = path.join( - path.dirname(path.fromFileUrl(import.meta.url)), - "testdata", - "child_process_stdin.js", - ); - const cp = spawn(Deno.execPath(), ["run", "-A", script]); + // Note: attempting to kill Deno with SIGABRT causes the process to zombify on certain OSX builds + // eg: 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:19 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6020 arm64 + // M2 Pro running Ventura 13.4 + + // Spawn an infinite cat + const cp = spawn("cat", ["-"]); const p = withTimeout(); cp.on("exit", () => p.resolve()); cp.kill("SIGIOT"); |