X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-renameat.c;h=a78a3b58ad8bc27c71a3190b330864bc035c05c3;hb=46f5f314f34a08c9305758482d7d2fdb0e999d09;hp=9b67da0a0b609e07950abd63f44a291162259121;hpb=2408f02086a20c0a02241cd4a1cf11f126a95fe3;p=gnulib.git diff --git a/tests/test-renameat.c b/tests/test-renameat.c index 9b67da0a0..a78a3b58a 100644 --- a/tests/test-renameat.c +++ b/tests/test-renameat.c @@ -1,5 +1,5 @@ /* Tests of renameat. - Copyright (C) 2009-2011 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);