tests: port large-fd POSIX spawn tests to OS X
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Jun 2013 07:10:21 +0000 (00:10 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Jun 2013 07:13:09 +0000 (00:13 -0700)
commitef5856c0c4c6302b6cac9c7cefb4e6cbdcf127be
tree0e319653182c23b364e639215fc699513ce29f06
parent9be0b54cb42e404e3e355c800b23537416acbc1f
tests: port large-fd POSIX spawn tests to OS X

Problem reported by Daiki Ueno in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
* tests/test-posix_spawn_file_actions_addclose.c:
* tests/test-posix_spawn_file_actions_adddup2.c:
* tests/test-posix_spawn_file_actions_addopen.c:
Include <limits.h>, for OPEN_MAX, if available.
(big_fd): New static function.
(main): Use it.
ChangeLog
tests/test-posix_spawn_file_actions_addclose.c
tests/test-posix_spawn_file_actions_adddup2.c
tests/test-posix_spawn_file_actions_addopen.c