summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-16 13:41:17 +0200
committerBruno Haible <bruno@clisp.org>2023-04-16 13:41:17 +0200
commita6874e978418a75a10549ac08d0db9bc9b5abbc8 (patch)
tree8a9e89c90178115511fca766f38fa9cae8ec3d7a /tests
parent5399c704c4c3a97dd3f506338cc1a2c980824806 (diff)
downloadgnulib-a6874e978418a75a10549ac08d0db9bc9b5abbc8.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-posix_spawn_file_actions_addclose.c4
1 files changed, 2 insertions, 2 deletions
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;