From: Bruno Haible Date: Mon, 14 Apr 2025 13:15:12 +0000 (+0200) Subject: select tests: Work around a Cygwin bug. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=5870e6d9f34ac6b18ab3af696152c55730b30af9;p=gnulib.git select tests: Work around a Cygwin bug. * tests/test-select-in.sh: Skip the /dev/null test on Cygwin 3.6.x. --- diff --git a/ChangeLog b/ChangeLog index e64c3e985e..4aa2a83c08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-04-14 Bruno Haible + + select tests: Work around a Cygwin bug. + * tests/test-select-in.sh: Skip the /dev/null test on Cygwin 3.6.x. + 2025-04-14 Bruno Haible isnanl, isfinite, snan: Improve cross-compilation guess. diff --git a/tests/test-select-in.sh b/tests/test-select-in.sh index ad86ea2526..9c74ca0c63 100755 --- a/tests/test-select-in.sh +++ b/tests/test-select-in.sh @@ -28,7 +28,18 @@ test `cat t-select-in.tmp` = "1" || exit 1 # Special files. # This part of the test is known to fail on Solaris 2.6 and older. - +# Also it fails in Cygwin 3.6.1, due to a Cygwin regression. +# +# +case `uname -s` in + CYGWIN*) + case `uname -r` in + 3.6.*) + echo "Skipping test: known Cygwin 3.6.x bug" + exit 77;; + esac + ;; +esac rm -f t-select-in.tmp ${CHECKER} ./test-select-fd${EXEEXT} r 0 t-select-in.tmp < /dev/null test `cat t-select-in.tmp` = "1" || exit 1