diff options
Diffstat (limited to 'tests/specs/permission/path_not_permitted/sub.ts')
-rw-r--r-- | tests/specs/permission/path_not_permitted/sub.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/specs/permission/path_not_permitted/sub.ts b/tests/specs/permission/path_not_permitted/sub.ts index ea527a938..e501b5b7b 100644 --- a/tests/specs/permission/path_not_permitted/sub.ts +++ b/tests/specs/permission/path_not_permitted/sub.ts @@ -1,4 +1,4 @@ -const binaryName = Deno.build.os === "windows" ? "deno.exe" : "deno"; +const binaryName = Deno.build.os === "windows" ? "binary.exe" : "binary"; const pathSep = Deno.build.os === "windows" ? "\\" : "/"; Deno.mkdirSync("subdir"); @@ -6,7 +6,7 @@ Deno.copyFileSync(binaryName, "subdir/" + binaryName); try { const commandResult = new Deno.Command( - "deno", + "binary", { env: { "PATH": Deno.cwd() + pathSep + "subdir" }, stdout: "inherit", @@ -22,7 +22,7 @@ try { try { const child = Deno.run( { - cmd: ["deno"], + cmd: ["binary"], env: { "PATH": Deno.cwd() + pathSep + "subdir" }, stdout: "inherit", stderr: "inherit", |