projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add more tests, results.
[pintos-anon]
/
grading
/
filesys
/
syn-remove.c
diff --git
a/grading/filesys/syn-remove.c
b/grading/filesys/syn-remove.c
index e47456a610d6d253ef99e5754f45cdd9e1c3aec3..c89c0bc0b9d7d64d71ca4cbd51df7e8dba0ad6ea 100644
(file)
--- a/
grading/filesys/syn-remove.c
+++ b/
grading/filesys/syn-remove.c
@@
-22,7
+22,7
@@
test_main (void)
msg ("seek \"%s\" to 0", filename);
seek (fd, 0);
check (read (fd, buf2, sizeof buf2) > 0, "read \"%s\"", filename);
msg ("seek \"%s\" to 0", filename);
seek (fd, 0);
check (read (fd, buf2, sizeof buf2) > 0, "read \"%s\"", filename);
- c
heck (!memcmp (buf1, buf2, sizeof buf1), "compare data read and written"
);
+ c
ompare_bytes (buf2, buf1, sizeof buf1, 0, filename
);
msg ("close \"%s\"", filename);
close (fd);
}
msg ("close \"%s\"", filename);
close (fd);
}