X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-renameat.c;h=a78a3b58ad8bc27c71a3190b330864bc035c05c3;hb=refs%2Fheads%2Fmaster;hp=f767d714e91ffd580907cac2352f0832e4cc258c;hpb=80a029602f5b2707ca8d2487843ecb9e0df74a6a;p=gnulib.git diff --git a/tests/test-renameat.c b/tests/test-renameat.c index f767d714e..a78a3b58a 100644 --- a/tests/test-renameat.c +++ b/tests/test-renameat.c @@ -1,5 +1,5 @@ /* Tests of renameat. - Copyright (C) 2009-2012 Free Software Foundation, Inc. + Copyright (C) 2009-2014 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 @@ -68,6 +68,7 @@ main (void) ASSERT (errno == EBADF); } { + close (99); errno = 0; ASSERT (renameat (99, "foo", AT_FDCWD, "bar") == -1); ASSERT (errno == EBADF);