projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clarification.
[pintos-anon]
/
grading
/
filesys
/
dir-rm-vine.c
diff --git
a/grading/filesys/dir-rm-vine.c
b/grading/filesys/dir-rm-vine.c
index 20b52a233e3486fdb6ad713cd1322daa28bfc30a..6259d3e54785a0ead9346c768c161b93c54d44c6 100644
(file)
--- a/
grading/filesys/dir-rm-vine.c
+++ b/
grading/filesys/dir-rm-vine.c
@@
-14,22
+14,22
@@
test_main (void)
tmp[1] = '\0';
for (tmp[0] = '0'; tmp[0] <= '9'; tmp[0]++)
{
tmp[1] = '\0';
for (tmp[0] = '0'; tmp[0] <= '9'; tmp[0]++)
{
-
check
(mkdir (tmp), "mkdir \"%s\"", tmp);
-
check
(chdir (tmp), "chdir \"%s\"", tmp);
+
CHECK
(mkdir (tmp), "mkdir \"%s\"", tmp);
+
CHECK
(chdir (tmp), "chdir \"%s\"", tmp);
}
}
-
check
(create ("test", 512), "create \"test\"");
+
CHECK
(create ("test", 512), "create \"test\"");
-
check
(chdir ("/"), "chdir \"/\"");
-
check
((fd = open (filename)) > 1, "open \"%s\"", filename);
+
CHECK
(chdir ("/"), "chdir \"/\"");
+
CHECK
((fd = open (filename)) > 1, "open \"%s\"", filename);
msg ("close \"%s\"", filename);
close (fd);
strlcpy (tmp, filename, sizeof tmp);
while (strlen (tmp) > 0)
{
msg ("close \"%s\"", filename);
close (fd);
strlcpy (tmp, filename, sizeof tmp);
while (strlen (tmp) > 0)
{
-
check
(remove (tmp), "remove \"%s\"", tmp);
+
CHECK
(remove (tmp), "remove \"%s\"", tmp);
*strrchr (tmp, '/') = 0;
}
*strrchr (tmp, '/') = 0;
}
-
check
(open (filename) == -1, "open \"%s\" (must return -1)", filename);
+
CHECK
(open (filename) == -1, "open \"%s\" (must return -1)", filename);
}
}