summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-09-07 23:33:31 +0200
committerBruno Haible <bruno@clisp.org>2022-09-07 23:33:31 +0200
commit891934d4b75038abc8e82f52d7a74d357af7e7cc (patch)
treee39616bf95f64350894deedc25723f26fd21e5ca /tests
parent8ec8867742611cdd2b8374f8882bc01f9e9bcfb4 (diff)
downloadgnulib-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.c4
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);