projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
getaddrinfo-tests: port --enable-gcc-warnings to clang
[gnulib.git]
/
tests
/
test-posix_spawn_file_actions_addopen.c
diff --git
a/tests/test-posix_spawn_file_actions_addopen.c
b/tests/test-posix_spawn_file_actions_addopen.c
index
d2920f1
..
c2329d4
100644
(file)
--- a/
tests/test-posix_spawn_file_actions_addopen.c
+++ b/
tests/test-posix_spawn_file_actions_addopen.c
@@
-25,6
+25,7
@@
SIGNATURE_CHECK (posix_spawn_file_actions_addopen, int,
#include <errno.h>
#include <fcntl.h>
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
#include "macros.h"
#include "macros.h"
@@
-44,7
+45,7
@@
main (void)
}
{
errno = 0;
}
{
errno = 0;
- ASSERT (posix_spawn_file_actions_addopen (&actions,
10000000
,
+ ASSERT (posix_spawn_file_actions_addopen (&actions,
getdtablesize ()
,
"foo", 0, O_RDONLY)
== EBADF);
}
"foo", 0, O_RDONLY)
== EBADF);
}