summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node/child_process_test.ts
diff options
context:
space:
mode:
authorMarvin Hagemeister <hello@marvinh.dev>2023-06-01 00:39:01 +0200
committerGitHub <noreply@github.com>2023-05-31 16:39:01 -0600
commit926d493f1967faa143205ad02a9c35f757829603 (patch)
treee3c791f50f923142e5869c603c670ee6e46e03a2 /cli/tests/unit_node/child_process_test.ts
parentf3193e0e1c12ea139f00d6b19d152b95f37b73c3 (diff)
fix(runtime): add missing SIGIOT alias to SIGABRT (#19333)
Diffstat (limited to 'cli/tests/unit_node/child_process_test.ts')
-rw-r--r--cli/tests/unit_node/child_process_test.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/cli/tests/unit_node/child_process_test.ts b/cli/tests/unit_node/child_process_test.ts
index e89fd7d79..d4a2a4cc6 100644
--- a/cli/tests/unit_node/child_process_test.ts
+++ b/cli/tests/unit_node/child_process_test.ts
@@ -599,3 +599,22 @@ Deno.test(
assertStringIncludes(output, "close");
},
);
+
+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]);
+ const p = withTimeout();
+ cp.on("exit", () => p.resolve());
+ cp.kill("SIGIOT");
+ await p;
+ assert(cp.killed);
+ assertEquals(cp.signalCode, "SIGIOT");
+ },
+});