From f4ac2b14750f615a4b7703853f04479e187f176e Mon Sep 17 00:00:00 2001 From: Mark Tiedemann Date: Thu, 19 Nov 2020 13:06:19 +0100 Subject: [PATCH] fix(cli/tests): printf.exe doesn't exist on windows (#8404) --- cli/tests/permission_test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/tests/permission_test.ts b/cli/tests/permission_test.ts index 420dc05ca9..ac42b7d69e 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 } = { }, runRequired(): void { const p = Deno.run({ - cmd: ["printf", "hello"], + cmd: Deno.build.os === "windows" + ? ["cmd.exe", "/c", "echo hello"] + : ["printf", "hello"], }); p.close(); },