summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node/testdata/child_process_unref.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit_node/testdata/child_process_unref.js')
-rw-r--r--cli/tests/unit_node/testdata/child_process_unref.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/unit_node/testdata/child_process_unref.js b/cli/tests/unit_node/testdata/child_process_unref.js
new file mode 100644
index 000000000..cc7815d97
--- /dev/null
+++ b/cli/tests/unit_node/testdata/child_process_unref.js
@@ -0,0 +1,9 @@
+import cp from "node:child_process";
+import * as path from "node:path";
+
+const script = path.join(
+ path.dirname(path.fromFileUrl(import.meta.url)),
+ "infinite_loop.js",
+);
+const childProcess = cp.spawn(Deno.execPath(), ["run", script]);
+childProcess.unref();