summaryrefslogtreecommitdiff
path: root/tests/testdata/run/lock_write_fetch/file_exists.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/lock_write_fetch/file_exists.ts')
-rw-r--r--tests/testdata/run/lock_write_fetch/file_exists.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testdata/run/lock_write_fetch/file_exists.ts b/tests/testdata/run/lock_write_fetch/file_exists.ts
new file mode 100644
index 000000000..20de4d4f2
--- /dev/null
+++ b/tests/testdata/run/lock_write_fetch/file_exists.ts
@@ -0,0 +1,6 @@
+try {
+ await Deno.open(Deno.args[0]);
+ Deno.exit(0);
+} catch (_e) {
+ Deno.exit(1);
+}