1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00

fix(cli/tests): printf.exe doesn't exist on windows (#8404)

This commit is contained in:
Mark Tiedemann 2020-11-19 13:06:19 +01:00 committed by GitHub
parent 6bb5fedc69
commit f4ac2b1475
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
},