]> 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>
Fri, 21 Apr 2023 15:24:34 +0000 (17:24 +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 ed7f55c203245f71b6d043b61abeded71ce7afd2..6059cbe2a66cb2ed79949e98dc5e7ad8f9c0a1e0 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 d0ab33d14faae7708ddfa8dc65631aa2bd2af8da..f28017e58541b8854128f62f12b7182cb871e58e 100644 (file)
@@ -1,5 +1,5 @@
 /* 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
@@ -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;