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.
+2022-09-07 Bruno Haible <bruno@clisp.org>
+
+ 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.
+
2022-09-05 Bruno Haible <bruno@clisp.org>
pthread-h: Fix compilation error on mingw with --enable-threads=windows.
posix_spawn_file_actions_destroy
configure.ac:
+gl_MUSL_LIBC
Makefile.am:
TESTS += test-posix_spawn_file_actions_addclose
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);