1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/cli/tests/testdata/spawn_kill_permissions.ts
Matt Mastracci 5c349039b8
chore(cli): Don't assume deno is in path for spawn_kill_permissions (#19198)
We don't need to use the `deno` command here to test kill permissions
and it's awkward to get right without passing `-A`. `cat` works, but for
platforms other than windows. This test should have plenty of coverage
on other platforms.
2023-05-22 09:54:58 -06:00

6 lines
126 B
TypeScript

const child = new Deno.Command("cat", {
args: ["-"],
stdout: "null",
stderr: "null",
}).spawn();
child.kill("SIGTERM");