diff options
author | Bruno Haible <bruno@clisp.org> | 2022-09-07 23:33:31 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-09-07 23:33:31 +0200 |
commit | 891934d4b75038abc8e82f52d7a74d357af7e7cc (patch) | |
tree | e39616bf95f64350894deedc25723f26fd21e5ca /tests | |
parent | 8ec8867742611cdd2b8374f8882bc01f9e9bcfb4 (diff) | |
download | gnulib-891934d4b75038abc8e82f52d7a74d357af7e7cc.tar.gz |
posix_spawn_file_actions_addclose tests: Avoid test failure on musl.
Reported by Valery Ushakov <uwe@stderr.spb.ru> in
<https://lists.gnu.org/archive/html/bug-gnulib/2022-09/msg00041.html>.
* modules/posix_spawn_file_actions_addclose-tests (configure.ac): Invoke
gl_MUSL_LIBC.
* tests/test-posix_spawn_file_actions_addclose.c (main): Skip one of the
tests on musl libc.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-posix_spawn_file_actions_addclose.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-posix_spawn_file_actions_addclose.c b/tests/test-posix_spawn_file_actions_addclose.c index c5238c3e38..d0ab33d14f 100644 --- a/tests/test-posix_spawn_file_actions_addclose.c +++ b/tests/test-posix_spawn_file_actions_addclose.c @@ -55,12 +55,14 @@ main (void) ASSERT (posix_spawn_file_actions_addclose (&actions, -1) == EBADF); } /* This behaviour is not mandated by POSIX, but happens to pass on all - platforms. */ + platforms except musl libc. */ +#if !defined MUSL_LIBC { int bad_fd = big_fd (); errno = 0; ASSERT (posix_spawn_file_actions_addclose (&actions, bad_fd) == EBADF); } +#endif posix_spawn_file_actions_destroy (&actions); |