projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dup2 tests: EBADF tests.
[gnulib.git]
/
tests
/
test-dup2.c
diff --git
a/tests/test-dup2.c
b/tests/test-dup2.c
index
e2ad88b
..
37454e9
100644
(file)
--- a/
tests/test-dup2.c
+++ b/
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));