diff options
Diffstat (limited to 'tests/unit_node/process_test.ts')
-rw-r--r-- | tests/unit_node/process_test.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unit_node/process_test.ts b/tests/unit_node/process_test.ts index f32303002..0ae0c2a7a 100644 --- a/tests/unit_node/process_test.ts +++ b/tests/unit_node/process_test.ts @@ -235,6 +235,18 @@ Deno.test({ }, }); +Deno.test( + { permissions: { run: true, read: true } }, + async function processKill() { + const p = new Deno.Command(Deno.execPath(), { + args: ["eval", "setTimeout(() => {}, 10000)"], + }).spawn(); + + process.kill(p.pid); + await p.status; + }, +); + Deno.test({ name: "process.off signal", ignore: Deno.build.os == "windows", |