X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-openat.c;h=ed505079fa6bd3d93eaf5d9dc058922b1a438640;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=a563ed606e20fda042cd526ed1643dc76a6602ff;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/tests/test-openat.c b/tests/test-openat.c index a563ed606..ed505079f 100644 --- a/tests/test-openat.c +++ b/tests/test-openat.c @@ -1,5 +1,5 @@ /* Test that openat works. - 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 @@ -72,6 +72,7 @@ main (int argc _GL_UNUSED, char *argv[]) ASSERT (errno == EBADF); } { + close (99); errno = 0; ASSERT (openat (99, "foo", O_RDONLY) == -1); ASSERT (errno == EBADF);