+2009-01-13 Bruno Haible <bruno@clisp.org>
+
+ Avoid test-copy-file.sh failures when ACL support insufficient.
+ * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
+ TESTS_ENVIRONMENT.
+ * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
+ Reported by Jim Meyering.
+
2009-01-13 Bruno Haible <bruno@clisp.org>
* modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
Makefile.am:
TESTS += test-copy-file.sh
-TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@'
+TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' USE_ACL=$(USE_ACL)
check_PROGRAMS += test-copy-file
test_copy_file_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@
func_test_copy ()
{
"$builddir"/test-copy-file${EXEEXT} "$1" "$2" || exit 1
- "$builddir"/test-sameacls${EXEEXT} "$1" "$2" || exit 1
- func_test_same_acls "$1" "$2" || exit 1
+ if test "$USE_ACL" != 0; then
+ "$builddir"/test-sameacls${EXEEXT} "$1" "$2" || exit 1
+ func_test_same_acls "$1" "$2" || exit 1
+ fi
}
func_test_copy tmpfile0 tmpfile1
- if test $acl_flavor != none; then
+ if test "$USE_ACL" != 0 && test $acl_flavor != none; then
# Use a user and group id different from the current one, to avoid
# redundant/ambiguous ACLs.
myuid=`id -u`