summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/bench/allow_none/allow_none.out12
-rw-r--r--tests/specs/bench/no_prompt_by_default/no_prompt_by_default.out2
-rw-r--r--tests/specs/bench/no_prompt_with_denied_perms/no_prompt_with_denied_perms.out2
-rw-r--r--tests/specs/compile/permissions_denied/main.out2
-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
-rw-r--r--tests/specs/run/ld_preload/env_arg.out8
-rw-r--r--tests/specs/run/ld_preload/set_with_allow_env.out8
9 files changed, 26 insertions, 26 deletions
diff --git a/tests/specs/bench/allow_none/allow_none.out b/tests/specs/bench/allow_none/allow_none.out
index d92fb1469..51bb70d72 100644
--- a/tests/specs/bench/allow_none/allow_none.out
+++ b/tests/specs/bench/allow_none/allow_none.out
@@ -6,16 +6,16 @@ Runtime | Deno [WILDLINE] ([WILDLINE])
benchmark time/iter (avg) iter/s (min … max) p75 p99 p995
----------- ----------------------------- --------------------- --------------------------
-read error: PermissionDenied: Can't escalate parent thread permissions
+read error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
-write error: PermissionDenied: Can't escalate parent thread permissions
+write error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
-net error: PermissionDenied: Can't escalate parent thread permissions
+net error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
-env error: PermissionDenied: Can't escalate parent thread permissions
+env error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
-run error: PermissionDenied: Can't escalate parent thread permissions
+run error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
-ffi error: PermissionDenied: Can't escalate parent thread permissions
+ffi error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
error: Bench failed
diff --git a/tests/specs/bench/no_prompt_by_default/no_prompt_by_default.out b/tests/specs/bench/no_prompt_by_default/no_prompt_by_default.out
index b39b4e1ba..e7bbd206d 100644
--- a/tests/specs/bench/no_prompt_by_default/no_prompt_by_default.out
+++ b/tests/specs/bench/no_prompt_by_default/no_prompt_by_default.out
@@ -5,6 +5,6 @@ Runtime | Deno [WILDCARD] ([WILDCARD])
benchmark time/iter (avg) iter/s (min … max) p75 p99 p995
----------- ----------------------------- --------------------- --------------------------
-no prompt error: PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag
+no prompt error: NotCapable: Requires read access to "./some_file.txt", run again with the --allow-read flag
[WILDCARD]
error: Bench failed
diff --git a/tests/specs/bench/no_prompt_with_denied_perms/no_prompt_with_denied_perms.out b/tests/specs/bench/no_prompt_with_denied_perms/no_prompt_with_denied_perms.out
index 182fcc4f1..656832863 100644
--- a/tests/specs/bench/no_prompt_with_denied_perms/no_prompt_with_denied_perms.out
+++ b/tests/specs/bench/no_prompt_with_denied_perms/no_prompt_with_denied_perms.out
@@ -5,6 +5,6 @@ Runtime | Deno [WILDCARD] ([WILDCARD])
benchmark time/iter (avg) iter/s (min … max) p75 p99 p995
----------- ----------------------------- --------------------- --------------------------
-no prompt error: PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag
+no prompt error: NotCapable: Requires read access to "./some_file.txt", run again with the --allow-read flag
[WILDCARD]
error: Bench failed
diff --git a/tests/specs/compile/permissions_denied/main.out b/tests/specs/compile/permissions_denied/main.out
index e9ea45c81..669272972 100644
--- a/tests/specs/compile/permissions_denied/main.out
+++ b/tests/specs/compile/permissions_denied/main.out
@@ -1,2 +1,2 @@
-error: Uncaught (in promise) PermissionDenied: Requires run access to "deno", specify the required permissions during compilation using `deno compile --allow-run`
+error: Uncaught (in promise) NotCapable: Requires run access to "deno", specify the required permissions during compilation using `deno compile --allow-run`
[WILDCARD] \ No newline at end of file
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]
diff --git a/tests/specs/run/ld_preload/env_arg.out b/tests/specs/run/ld_preload/env_arg.out
index 3df781a8e..945737e65 100644
--- a/tests/specs/run/ld_preload/env_arg.out
+++ b/tests/specs/run/ld_preload/env_arg.out
@@ -1,8 +1,8 @@
-PermissionDenied: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable.
+NotCapable: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable.
[WILDCARD]
- name: "PermissionDenied"
+ name: "NotCapable"
}
-PermissionDenied: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable.
+NotCapable: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable.
[WILDCARD]
- name: "PermissionDenied"
+ name: "NotCapable"
}
diff --git a/tests/specs/run/ld_preload/set_with_allow_env.out b/tests/specs/run/ld_preload/set_with_allow_env.out
index 60dba7cff..f89582d6c 100644
--- a/tests/specs/run/ld_preload/set_with_allow_env.out
+++ b/tests/specs/run/ld_preload/set_with_allow_env.out
@@ -1,8 +1,8 @@
-PermissionDenied: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable.
+NotCapable: Requires --allow-all permissions to spawn subprocess with LD_PRELOAD environment variable.
[WILDCARD]
- name: "PermissionDenied"
+ name: "NotCapable"
}
-PermissionDenied: Requires --allow-all permissions to spawn subprocess with DYLD_FALLBACK_LIBRARY_PATH, LD_PRELOAD environment variables.
+NotCapable: Requires --allow-all permissions to spawn subprocess with DYLD_FALLBACK_LIBRARY_PATH, LD_PRELOAD environment variables.
[WILDCARD]
- name: "PermissionDenied"
+ name: "NotCapable"
}