From 0d55fee1e75cf71b40769644e23076b98628a45c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 16 Apr 2023 13:41:17 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ tests/test-posix_spawn_file_actions_addclose.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ed7f55c203..6059cbe2a6 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 d0ab33d14f..f28017e585 100644 --- a/tests/test-posix_spawn_file_actions_addclose.c +++ b/tests/test-posix_spawn_file_actions_addclose.c @@ -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; -- 2.39.5