From: Ben Pfaff Date: Wed, 4 Jan 2006 21:51:59 +0000 (+0000) Subject: Don't check return value of write(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=339808528a02465a4d596a9bd0466541ddd16366;p=pintos-anon Don't check return value of write(). --- diff --git a/src/tests/filesys/extended/grow-too-big.c b/src/tests/filesys/extended/grow-too-big.c index 5edcf95..9d7ddca 100644 --- a/src/tests/filesys/extended/grow-too-big.c +++ b/src/tests/filesys/extended/grow-too-big.c @@ -14,7 +14,8 @@ test_main (void) CHECK ((fd = open (filename)) > 1, "open \"%s\"", filename); msg ("seek \"%s\"", filename); seek (fd, UINT_MAX); - CHECK (write (fd, &zero, 1) > 0, "write \"%s\"", filename); + msg ("write \"%s\"", filename); + write (fd, &zero, 1); msg ("close \"%s\"", filename); close (fd); }