From: Bruno Haible Date: Sun, 16 Apr 2023 11:41:17 +0000 (+0200) Subject: posix_spawn_file_actions_addclose tests: Avoid test failure on Cygwin. X-Git-Tag: v1.0~1437 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a6874e978418a75a10549ac08d0db9bc9b5abbc8;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 0e5a94eab1..581ca09a47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-04-16 Bruno Haible + + 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 Fix compilation errors of list, set, oset, map, omap in C++ mode. diff --git a/tests/test-posix_spawn_file_actions_addclose.c b/tests/test-posix_spawn_file_actions_addclose.c index f900415dae..f28017e585 100644 --- a/tests/test-posix_spawn_file_actions_addclose.c +++ b/tests/test-posix_spawn_file_actions_addclose.c @@ -55,8 +55,8 @@ 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 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;