X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=grading%2Ffilesys%2Fgrow-too-big.c;h=bf8e3000ffd18c864f321504f19c4c6b16fe8270;hb=4cc63e5b2f809643726e84cfb2c0a8def042bab7;hp=5711693b2f5fbfd8e9f28911a2618ae8e8d87b01;hpb=dd2f9330108fbf488d9de8be9b4a7419d0ec97a4;p=pintos-anon diff --git a/grading/filesys/grow-too-big.c b/grading/filesys/grow-too-big.c index 5711693..bf8e300 100644 --- a/grading/filesys/grow-too-big.c +++ b/grading/filesys/grow-too-big.c @@ -9,14 +9,15 @@ const char test_name[] = "grow-sparse"; void test_main (void) { + const char *filename = "fumble"; char zero = 0; int fd; - check (create ("testfile", 0), "create \"testfile\""); - check ((fd = open ("testfile")) > 1, "open \"testfile\""); - msg ("seek \"testfile\""); + CHECK (create (filename, 0), "create \"%s\"", filename); + CHECK ((fd = open (filename)) > 1, "open \"%s\"", filename); + msg ("seek \"%s\"", filename); seek (fd, UINT_MAX); - check (write (fd, &zero, 1) > 0, "write \"testfile\""); - msg ("close \"testfile\""); + CHECK (write (fd, &zero, 1) > 0, "write \"%s\"", filename); + msg ("close \"%s\"", filename); close (fd); }