About 3 days ago, the test-file-has-acl-2.sh started failing on Cygwin
in the GitHub CI. Both on Cygwin 3.3.6 and the current 3.6.x.

In this build from 3 days ago the test still succeeded:
https://github.com/gnu-gettext/ci-check/actions/runs/15493719484
But nothing changed in Gnulib regarding ACLs last week.

I don't have time to investigate this; it might be a configuration
change on the GitHub side, or it might be a Windows update.


2025-06-09  Bruno Haible  <br...@clisp.org>

        file-has-acl tests: Avoid test failure on Cygwin.
        * modules/file-has-acl-tests (Makefile.am): Add host_os to the
        TESTS_ENVIRONMENT.
        * tests/test-file-has-acl-2.sh: On Cygwin, skip this test.

diff --git a/modules/file-has-acl-tests b/modules/file-has-acl-tests
index f34d8733f9..0824388a5a 100644
--- a/modules/file-has-acl-tests
+++ b/modules/file-has-acl-tests
@@ -15,6 +15,8 @@ AC_CHECK_DECLS_ONCE([alarm])
 Makefile.am:
 TESTS += \
   test-file-has-acl.sh test-file-has-acl-1.sh test-file-has-acl-2.sh
-TESTS_ENVIRONMENT += USE_ACL=$(USE_ACL)
+TESTS_ENVIRONMENT += \
+  USE_ACL=$(USE_ACL) \
+  host_os='@host_os@'
 check_PROGRAMS += test-file-has-acl
 test_file_has_acl_LDADD = $(LDADD) $(FILE_HAS_ACL_LIB)
diff --git a/tests/test-file-has-acl-2.sh b/tests/test-file-has-acl-2.sh
index 41561d6cf3..a268f4e5d4 100755
--- a/tests/test-file-has-acl-2.sh
+++ b/tests/test-file-has-acl-2.sh
@@ -5,6 +5,12 @@
 
 . "${srcdir=.}/init.sh"; path_prepend_ .
 
+# Around 2025-06-06, this test started failing on the GitHub CI machines.
+# Cause unknown.
+case "$host_os" in
+  cygwin*) Exit 77 ;;
+esac
+
 TMPDIR=`pwd`
 export TMPDIR
 




Reply via email to