summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorMark Tiedemann <www.marktiedemann@gmail.com>2020-11-19 13:06:19 +0100
committerGitHub <noreply@github.com>2020-11-19 07:06:19 -0500
commitf4ac2b14750f615a4b7703853f04479e187f176e (patch)
treedc3f4c9d033e3be3564abed222eccadcf6b463a2 /cli/tests
parent6bb5fedc695ea0f46839c5de776eaed94468a1ac (diff)
fix(cli/tests): printf.exe doesn't exist on windows (#8404)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/permission_test.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tests/permission_test.ts b/cli/tests/permission_test.ts
index 420dc05ca..ac42b7d69 100644
--- a/cli/tests/permission_test.ts
+++ b/cli/tests/permission_test.ts
@@ -17,7 +17,9 @@ const test: { [key: string]: (...args: any[]) => void | Promise<void> } = {
},
runRequired(): void {
const p = Deno.run({
- cmd: ["printf", "hello"],
+ cmd: Deno.build.os === "windows"
+ ? ["cmd.exe", "/c", "echo hello"]
+ : ["printf", "hello"],
});
p.close();
},