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