acl: Avoid test failure on Cygwin-hosted mingw.
authorBruno Haible <bruno@clisp.org>
Sun, 9 May 2010 16:51:48 +0000 (18:51 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 May 2010 16:51:48 +0000 (18:51 +0200)
ChangeLog
tests/test-set-mode-acl.sh

index 865b1b8..7c1f4e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-05-09  Bruno Haible  <bruno@clisp.org>
 
+       acl: Avoid test failure on Cygwin-hosted mingw.
+       * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
+
+2010-05-09  Bruno Haible  <bruno@clisp.org>
+
        error: Use system's fcntl function.
        * lib/error.c (fcntl): Undefine.
 
index 5d3d225..ef2b716 100755 (executable)
@@ -3,6 +3,12 @@
 # Show all commands when run with environment variable VERBOSE=yes.
 test -z "$VERBOSE" || set -x
 
+test "$USE_ACL" = 0 &&
+  {
+    echo "Skipping test: insufficient ACL support"
+    exit 77
+  }
+
 # func_tmpdir
 # creates a temporary directory.
 # Sets variable