summaryrefslogtreecommitdiff
path: root/tests/specs/permission/path_not_permitted/main.ts
blob: 0cc141e7ac8332135c2b008e20d973405d4b2753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const binaryName = Deno.build.os === "windows" ? "deno.exe" : "deno";
Deno.copyFileSync(Deno.execPath(), binaryName);

console.log("Running...");
new Deno.Command(
  Deno.execPath(),
  {
    args: [
      "run",
      "--allow-write",
      "--allow-read",
      `--allow-run=deno`,
      "sub.ts",
    ],
    stderr: "inherit",
    stdout: "inherit",
  },
).outputSync();