+2023-04-16 Bruno Haible <bruno@clisp.org>
+
+ posix_spawn_file_actions_addclose tests: Avoid test failure on Cygwin.
+ * tests/test-posix_spawn_file_actions_addclose.c (main): Skip an
+ unportable test also on Cygwin.
+
2023-04-15 Bruno Haible <bruno@clisp.org>
Fix compilation errors of list, set, oset, map, omap in C++ mode.
/* Test posix_spawn_file_actions_addclose() function.
- Copyright (C) 2011-2022 Free Software Foundation, Inc.
+ Copyright (C) 2011-2023 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
ASSERT (posix_spawn_file_actions_addclose (&actions, -1) == EBADF);
}
/* This behaviour is not mandated by POSIX, but happens to pass on all
- platforms except musl libc. */
-#if !defined MUSL_LIBC
+ platforms except musl libc and Cygwin. */
+#if !(defined MUSL_LIBC || defined __CYGWIN__)
{
int bad_fd = big_fd ();
errno = 0;