summaryrefslogtreecommitdiffstats
path: root/tests/userprog/open-twice.ck
diff options
context:
space:
mode:
Diffstat (limited to 'tests/userprog/open-twice.ck')
-rw-r--r--tests/userprog/open-twice.ck12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/userprog/open-twice.ck b/tests/userprog/open-twice.ck
new file mode 100644
index 0000000..64fa805
--- /dev/null
+++ b/tests/userprog/open-twice.ck
@@ -0,0 +1,12 @@
1# -*- perl -*-
2use strict;
3use warnings;
4use tests::tests;
5check_expected ([<<'EOF']);
6(open-twice) begin
7(open-twice) open "sample.txt" once
8(open-twice) open "sample.txt" again
9(open-twice) end
10open-twice: exit(0)
11EOF
12pass;