summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run/no_prompt.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/run/no_prompt.ts')
-rw-r--r--cli/tests/testdata/run/no_prompt.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/no_prompt.ts b/cli/tests/testdata/run/no_prompt.ts
new file mode 100644
index 000000000..7f9750995
--- /dev/null
+++ b/cli/tests/testdata/run/no_prompt.ts
@@ -0,0 +1,10 @@
+new Worker("data:,setTimeout(() => Deno.exit(2), 200)", { type: "module" });
+
+try {
+ await Deno.spawn("ps", {
+ stdout: "inherit",
+ stderr: "inherit",
+ });
+} catch {
+ Deno.exit(0);
+}