summaryrefslogtreecommitdiff
path: root/gl/tests/test-dup2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/tests/test-dup2.c')
-rw-r--r--gl/tests/test-dup2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gl/tests/test-dup2.c b/gl/tests/test-dup2.c
index e2ad88bcca..37454e965c 100644
--- a/gl/tests/test-dup2.c
+++ b/gl/tests/test-dup2.c
@@ -121,6 +121,9 @@ main (void)
ASSERT (dup2 (-1, fd) == -1);
ASSERT (errno == EBADF);
errno = 0;
+ ASSERT (dup2 (99, fd) == -1);
+ ASSERT (errno == EBADF);
+ errno = 0;
ASSERT (dup2 (AT_FDCWD, fd) == -1);
ASSERT (errno == EBADF);
ASSERT (is_open (fd));