]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
file-has-acl tests: Avoid test failure on Cygwin.
authorBruno Haible <bruno@clisp.org>
Mon, 9 Jun 2025 10:51:14 +0000 (12:51 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 9 Jun 2025 10:51:14 +0000 (12:51 +0200)
* 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.

ChangeLog
modules/file-has-acl-tests
tests/test-file-has-acl-2.sh

index c0eed85a660e96e327083fb9af807f7ca5fb0676..bae0566e0a1f978d1ccf191c38a39b3616be31c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-06-09  Bruno Haible  <bruno@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.
+
 2025-06-08  Paul Eggert  <eggert@cs.ucla.edu>
 
        parse-datetime: debug mktime failures better
index f34d8733f92c354dedd7d4775015cf3a2791d25b..0824388a5a848e7a841bf2a9b45e4159dc6401f7 100644 (file)
@@ -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)
index 41561d6cf3b828fe3d1175b5ffcd553f1e750fe9..a268f4e5d4b71f1996bc33612080690de9a53a97 100755 (executable)
@@ -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