diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-05-08 14:39:06 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 14:39:06 -0600 |
commit | 9f7f681e26887a9b284a2f25e8252c3a5077f348 (patch) | |
tree | 19315e1b11ab3597b2055966b8b6dd93780af298 /tests/specs | |
parent | 547ce6c3b82c5e0c04dfb902f609cb229a2bde9a (diff) |
fix(runtime): allow nul device on windows (#23741)
Fixes [23721](https://github.com/denoland/deno/issues/23721)
Diffstat (limited to 'tests/specs')
-rw-r--r-- | tests/specs/permission/special/main.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/specs/permission/special/main.js b/tests/specs/permission/special/main.js index 53a7adc9e..59ec4f7b5 100644 --- a/tests/specs/permission/special/main.js +++ b/tests/specs/permission/special/main.js @@ -5,6 +5,7 @@ const testCases = [ // Allowed, safe [["darwin", "linux"], null, "/dev/null"], [["darwin", "linux"], null, "/etc/passwd"], + [["windows"], null, "\\\\.\\nul"], // Denied, requires `--allow-all` [["darwin", "linux"], /PermissionDenied/, "/dev/ptmx"], [["linux"], /PermissionDenied/, "/proc/self/environ"], @@ -40,6 +41,7 @@ for (const [oses, error, file] of testCases) { console.log(`Got an error (expected) for ${file}: ${e}`); } else { console.log(`*** Got an unexpected error for ${file}: ${e}`); + failed = true; } } } |