mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
fix(cli/tests): printf.exe doesn't exist on windows (#8404)
This commit is contained in:
parent
6bb5fedc69
commit
f4ac2b1475
1 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,9 @@ const test: { [key: string]: (...args: any[]) => void | Promise<void> } = {
|
||||||
},
|
},
|
||||||
runRequired(): void {
|
runRequired(): void {
|
||||||
const p = Deno.run({
|
const p = Deno.run({
|
||||||
cmd: ["printf", "hello"],
|
cmd: Deno.build.os === "windows"
|
||||||
|
? ["cmd.exe", "/c", "echo hello"]
|
||||||
|
: ["printf", "hello"],
|
||||||
});
|
});
|
||||||
p.close();
|
p.close();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue