diff options
author | Bruno Haible <bruno@clisp.org> | 2021-04-08 01:37:05 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-04-08 01:37:05 +0200 |
commit | 2a7948aad478bcdcd2472b380054f84e7360ec10 (patch) | |
tree | 40c686f26f7a1bf17c7f425eef1bbbc9477d5616 /modules | |
parent | dbb1926d7d0ff41c35ae05bcf3ee03a2c6b1377b (diff) | |
download | gnulib-2a7948aad478bcdcd2472b380054f84e7360ec10.tar.gz |
execute tests: Avoid test failure in certain environments.
Reported by Dmitry V. Levin <ldv@altlinux.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-04/msg00082.html>.
* tests/test-execute-main.c (main): Close file descriptors 3..19.
* tests/test-execute-child.c (main): Remove NetBSD workaround.
* modules/execute-tests (configure.ac): Test for close_range function.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/execute-tests | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/execute-tests b/modules/execute-tests index 422c1abe72..c9421302bf 100644 --- a/modules/execute-tests +++ b/modules/execute-tests @@ -18,6 +18,8 @@ stdint unistd configure.ac: +dnl Test for Linux system call close_range(), declared in <unistd.h>. +AC_CHECK_FUNCS([close_range]) Makefile.am: TESTS += test-execute.sh |