]> Savannah Git Hosting - gnulib.git/commitdiff
posix_spawn_file_actions_addclose tests: Avoid test failure on Cygwin.
authorBruno Haible <bruno@clisp.org>
Sun, 16 Apr 2023 11:41:17 +0000 (13:41 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Apr 2023 11:41:17 +0000 (13:41 +0200)
* tests/test-posix_spawn_file_actions_addclose.c (main): Skip an
unportable test also on Cygwin.

ChangeLog
tests/test-posix_spawn_file_actions_addclose.c

index 0e5a94eab135219519716cab77b4e0b703b26780..581ca09a473d2ec8879bb1880b7beb3525214af5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index f900415dae915082f4151fc39b27efdeb0451bbd..f28017e58541b8854128f62f12b7182cb871e58e 100644 (file)
@@ -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;