summaryrefslogtreecommitdiff
path: root/tests/specs/permission/deny_run_binary_absolute_path/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/permission/deny_run_binary_absolute_path/main.ts')
-rw-r--r--tests/specs/permission/deny_run_binary_absolute_path/main.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/specs/permission/deny_run_binary_absolute_path/main.ts b/tests/specs/permission/deny_run_binary_absolute_path/main.ts
new file mode 100644
index 000000000..eca5e5a33
--- /dev/null
+++ b/tests/specs/permission/deny_run_binary_absolute_path/main.ts
@@ -0,0 +1,15 @@
+try {
+ new Deno.Command("deno", {
+ args: ["--version"],
+ }).outputSync();
+} catch (err) {
+ console.error(err);
+}
+
+try {
+ new Deno.Command(Deno.execPath(), {
+ args: ["--version"],
+ }).outputSync();
+} catch (err) {
+ console.error(err);
+}