projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace lsdir system call by readdir, isdir system calls,
[pintos-anon]
/
src
/
tests
/
filesys
/
extended
/
dir-open.ck
diff --git
a/src/tests/filesys/extended/dir-open.ck
b/src/tests/filesys/extended/dir-open.ck
index 09c0083cd0bfab1afaa15a1df89b738c2e2897bb..e16e9a0285b4398d43366761bf83e73a8234487b 100644
(file)
--- a/
src/tests/filesys/extended/dir-open.ck
+++ b/
src/tests/filesys/extended/dir-open.ck
@@
-2,16
+2,18
@@
use strict;
use warnings;
use tests::tests;
use strict;
use warnings;
use tests::tests;
-check_expected (
IGNORE_EXIT_CODES => 1,
[<<'EOF', <<'EOF']);
+check_expected ([<<'EOF', <<'EOF']);
(dir-open) begin
(dir-open) mkdir "xyzzy"
(dir-open) open "xyzzy"
(dir-open) begin
(dir-open) mkdir "xyzzy"
(dir-open) open "xyzzy"
-(dir-open) open returned -1 -- ok
+(dir-open) write "xyzzy"
+(dir-open) write "xyzzy" (must return -1, actually -1)
(dir-open) end
(dir-open) end
+dir-open: exit(0)
EOF
(dir-open) begin
(dir-open) mkdir "xyzzy"
(dir-open) open "xyzzy"
EOF
(dir-open) begin
(dir-open) mkdir "xyzzy"
(dir-open) open "xyzzy"
-(dir-open) write "xyzzy"
(must return -1, actually -1)
-(dir-open) end
+(dir-open) write "xyzzy"
+dir-open: exit(-1)
EOF
EOF