X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=grading%2Ffilesys%2Fsyn-remove.c;h=c89c0bc0b9d7d64d71ca4cbd51df7e8dba0ad6ea;hb=c36e5b768f46fc098377b9a70d2b1c02405ef14a;hp=e47456a610d6d253ef99e5754f45cdd9e1c3aec3;hpb=0f5c19ccf179b35b39ae46dffec60592baeeec00;p=pintos-anon diff --git a/grading/filesys/syn-remove.c b/grading/filesys/syn-remove.c index e47456a..c89c0bc 100644 --- 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); - check (!memcmp (buf1, buf2, sizeof buf1), "compare data read and written"); + compare_bytes (buf2, buf1, sizeof buf1, 0, filename); msg ("close \"%s\"", filename); close (fd); }