mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
fix(runtime): add missing SIGIOT alias to SIGABRT (#19333)
This commit is contained in:
parent
f3193e0e1c
commit
926d493f19
2 changed files with 22 additions and 0 deletions
|
@ -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");
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue