X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fdopendir.c;h=d780b62140e3b5ad5b9cb76980e8ec89c17aec7c;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=a8e115a1f448863fe921b78ccb5b029e27ad1743;hpb=9fc81090f6c5590bd1b0e0fa5087577a2ee43a3e;p=gnulib.git diff --git a/tests/test-fdopendir.c b/tests/test-fdopendir.c index a8e115a1f..d780b6214 100644 --- a/tests/test-fdopendir.c +++ b/tests/test-fdopendir.c @@ -1,5 +1,5 @@ /* Test opening a directory stream from a file descriptor. - Copyright (C) 2009-2013 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 @@ -54,6 +54,7 @@ main (int argc _GL_UNUSED, char *argv[]) ASSERT (errno == EBADF); } { + close (99); errno = 0; ASSERT (fdopendir (99) == NULL); ASSERT (errno == EBADF);