Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / filesys / extended / dir-open.ck
1 # -*- perl -*-
2 use strict;
3 use warnings;
4 use tests::tests;
5 check_expected (IGNORE_EXIT_CODES => 1, [<<'EOF', <<'EOF']);
6 (dir-open) begin
7 (dir-open) mkdir "xyzzy"
8 (dir-open) open "xyzzy"
9 (dir-open) open returned -1 -- ok
10 (dir-open) end
11 EOF
12 (dir-open) begin
13 (dir-open) mkdir "xyzzy"
14 (dir-open) open "xyzzy"
15 (dir-open) write "xyzzy" (must return -1, actually -1)
16 (dir-open) end
17 EOF