X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fsync.c;h=d21d3615256b1704dfeb12d5d5f842dad43e70ed;hb=23eecb48e39afd0d267d64d40ba6bf97aa865e13;hp=3e6fb2951f1f879c313ea1908eb589276e44c942;hpb=06b335ade65c8fe60fee8b9e18b670bb54ed924a;p=gnulib.git diff --git a/tests/test-fsync.c b/tests/test-fsync.c index 3e6fb2951..d21d36152 100644 --- a/tests/test-fsync.c +++ b/tests/test-fsync.c @@ -1,5 +1,5 @@ /* Test of fsync() function. - Copyright (C) 2008-2012 Free Software Foundation, Inc. + Copyright (C) 2008-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -51,6 +51,7 @@ main (void) ASSERT (errno == EBADF); } { + close (99); errno = 0; ASSERT (fsync (99) == -1); ASSERT (errno == EBADF);