X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-dup2.c;h=9600c850b16d0e5582e1528e0566ec2ed4ab3a1c;hb=38e8c084b95e98c4e763df8cfc43a141aa93fc5f;hp=5043c0c5bff28f5ffd50e383f5ba7d31408d22dd;hpb=1b612639b0d75ca13f87f3ae5b1eda423cb21655;p=gnulib.git diff --git a/tests/test-dup2.c b/tests/test-dup2.c index 5043c0c5b..9600c850b 100644 --- a/tests/test-dup2.c +++ b/tests/test-dup2.c @@ -1,5 +1,5 @@ /* Test duplicating file descriptors. - Copyright (C) 2009-2012 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 @@ -122,6 +122,7 @@ main (void) errno = 0; ASSERT (dup2 (-1, fd) == -1); ASSERT (errno == EBADF); + close (99); errno = 0; ASSERT (dup2 (99, fd) == -1); ASSERT (errno == EBADF);