]> Savannah Git Hosting - gnulib.git/commitdiff
select tests: Work around a Cygwin bug.
authorBruno Haible <bruno@clisp.org>
Mon, 14 Apr 2025 13:15:12 +0000 (15:15 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 14 Apr 2025 13:15:12 +0000 (15:15 +0200)
* tests/test-select-in.sh: Skip the /dev/null test on Cygwin 3.6.x.

ChangeLog
tests/test-select-in.sh

index e64c3e985eb83bcce891a478fae92d04018144fe..4aa2a83c080052997e1a4216fdec196dbf3551eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-04-14  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        isnanl, isfinite, snan: Improve cross-compilation guess.
index ad86ea252606a806314bf580ac5bc28d3163643c..9c74ca0c63ce8e6479cec2dd52e4e40f62b055d3 100755 (executable)
@@ -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.
+# <https://sourceware.org/pipermail/cygwin/2025-April/257940.html>
+# <https://sourceware.org/pipermail/cygwin/2025-April/257952.html>
+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