summaryrefslogtreecommitdiff
path: root/tests/test-dup.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-dup.c')
-rw-r--r--tests/test-dup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-dup.c b/tests/test-dup.c
index ba7d752e5b..b2cf9357d6 100644
--- a/tests/test-dup.c
+++ b/tests/test-dup.c
@@ -35,6 +35,7 @@ main (void)
ASSERT (errno == EBADF);
}
{
+ close (99);
errno = 0;
ASSERT (dup (99) == -1);
ASSERT (errno == EBADF);