summaryrefslogtreecommitdiff
path: root/tests/specs/permission
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/permission')
-rw-r--r--tests/specs/permission/path_not_permitted/main.out8
-rw-r--r--tests/specs/permission/special/main.js8
-rw-r--r--tests/specs/permission/write_allow_binary/main.out2
3 files changed, 9 insertions, 9 deletions
diff --git a/tests/specs/permission/path_not_permitted/main.out b/tests/specs/permission/path_not_permitted/main.out
index 77f800158..b057d0a63 100644
--- a/tests/specs/permission/path_not_permitted/main.out
+++ b/tests/specs/permission/path_not_permitted/main.out
@@ -1,11 +1,11 @@
Running...
-PermissionDenied: Requires run access to "deno", run again with the --allow-run flag
+NotCapable: Requires run access to "deno", run again with the --allow-run flag
[WILDCARD]
at file:///[WILDLINE]/sub.ts:15:5 {
- name: "PermissionDenied"
+ name: "NotCapable"
}
-PermissionDenied: Requires run access to "deno", run again with the --allow-run flag
+NotCapable: Requires run access to "deno", run again with the --allow-run flag
[WILDCARD]
at file:///[WILDLINE]/sub.ts:23:22 {
- name: "PermissionDenied"
+ name: "NotCapable"
}
diff --git a/tests/specs/permission/special/main.js b/tests/specs/permission/special/main.js
index 59ec4f7b5..721e0c392 100644
--- a/tests/specs/permission/special/main.js
+++ b/tests/specs/permission/special/main.js
@@ -7,10 +7,10 @@ const testCases = [
[["darwin", "linux"], null, "/etc/passwd"],
[["windows"], null, "\\\\.\\nul"],
// Denied, requires `--allow-all`
- [["darwin", "linux"], /PermissionDenied/, "/dev/ptmx"],
- [["linux"], /PermissionDenied/, "/proc/self/environ"],
- [["linux"], /PermissionDenied/, "/proc/self/mem"],
- [["windows"], /PermissionDenied/, "\\\\.\\PhysicalDrive0"],
+ [["darwin", "linux"], /NotCapable/, "/dev/ptmx"],
+ [["linux"], /NotCapable/, "/proc/self/environ"],
+ [["linux"], /NotCapable/, "/proc/self/mem"],
+ [["windows"], /NotCapable/, "\\\\.\\PhysicalDrive0"],
];
const os = Deno.build.os;
diff --git a/tests/specs/permission/write_allow_binary/main.out b/tests/specs/permission/write_allow_binary/main.out
index e7c47f288..0432ee6c9 100644
--- a/tests/specs/permission/write_allow_binary/main.out
+++ b/tests/specs/permission/write_allow_binary/main.out
@@ -1,5 +1,5 @@
Running...
-error: Uncaught (in promise) PermissionDenied: Requires write access to "binary[WILDLINE]", run again with the --allow-write flag
+error: Uncaught (in promise) NotCapable: Requires write access to "binary[WILDLINE]", run again with the --allow-write flag
Deno.writeTextFileSync(binaryName, "");
^
at [WILDCARD]