X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-dup.c;h=b2cf9357d647222f08d53dff6d1556a27f423f72;hb=5191b3546cfb6c163228c23f214e325ddf60d46f;hp=6ada484a2835a4874d750405915751d50cb065f1;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/tests/test-dup.c b/tests/test-dup.c index 6ada484a2..b2cf9357d 100644 --- a/tests/test-dup.c +++ b/tests/test-dup.c @@ -1,5 +1,5 @@ /* Test duplicating a file descriptor. - Copyright (C) 2011-2012 Free Software Foundation, Inc. + Copyright (C) 2011-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 @@ -35,6 +35,7 @@ main (void) ASSERT (errno == EBADF); } { + close (99); errno = 0; ASSERT (dup (99) == -1); ASSERT (errno == EBADF);