projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add makefiles for cleaning grades, top level.
[pintos-anon]
/
grading
/
filesys
/
dir-open.c
diff --git
a/grading/filesys/dir-open.c
b/grading/filesys/dir-open.c
index 40550ee81e1d8457922264e1fb17ca44f84dd7e4..37a400bb8f8b37b0005a3f5692f92b788b90c902 100644
(file)
--- a/
grading/filesys/dir-open.c
+++ b/
grading/filesys/dir-open.c
@@
-8,7
+8,7
@@
test_main (void)
{
int fd;
{
int fd;
-
check
(mkdir ("xyzzy"), "mkdir \"xyzzy\"");
+
CHECK
(mkdir ("xyzzy"), "mkdir \"xyzzy\"");
msg ("open \"xyzzy\"");
fd = open ("xyzzy");
if (fd == -1)
msg ("open \"xyzzy\"");
fd = open ("xyzzy");
if (fd == -1)
@@
-16,7
+16,7
@@
test_main (void)
else
{
int retval = write (fd, "foobar", 6);
else
{
int retval = write (fd, "foobar", 6);
-
check
(retval == -1, "write \"xyzzy\" (must return -1, actually %d)",
+
CHECK
(retval == -1, "write \"xyzzy\" (must return -1, actually %d)",
retval);
}
}
retval);
}
}