X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-readlinkat.c;h=c2ce6ef7eba8c0ed3f70538d9541c25d4c271bdc;hb=69770559f5bf198928150ac8162734d7f6b99c82;hp=5685934a28c015a2a9a9f223b83c201f6c3fa54d;hpb=ea119b4b9ff31bbcdc9fd3b408d6f3f4ab8475df;p=gnulib.git diff --git a/tests/test-readlinkat.c b/tests/test-readlinkat.c index 5685934a2..c2ce6ef7e 100644 --- a/tests/test-readlinkat.c +++ b/tests/test-readlinkat.c @@ -1,5 +1,5 @@ /* Tests of readlinkat. - Copyright (C) 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2009-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 @@ -66,6 +66,7 @@ main (void) ASSERT (errno == EBADF); } { + close (99); errno = 0; ASSERT (readlinkat (99, "foo", buf, sizeof buf) == -1); ASSERT (errno == EBADF);