aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2017-11-19 12:11:18 +0100
committerMichael Albinus2017-11-19 12:11:18 +0100
commita8892b4e627087cdceef39a96e100cf18c9391ae (patch)
tree6e158392473b881b631f936d8659262870d61b79
parentd14923b4d48410e37efc85b25cbe75e07c8f8ac7 (diff)
downloademacs-a8892b4e627087cdceef39a96e100cf18c9391ae.tar.gz
emacs-a8892b4e627087cdceef39a96e100cf18c9391ae.zip
Further fix for Bug#29291
* test/lisp/net/tramp-tests.el (tramp-test24-file-acl): Check for local ACL support. (Bug#29291)
-rw-r--r--test/lisp/net/tramp-tests.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 62f72a3f6f6..3d0ed499d54 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -2983,9 +2983,11 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
2983 (set-file-modes tmp-name3 #o444) 2983 (set-file-modes tmp-name3 #o444)
2984 (should-not 2984 (should-not
2985 (string-equal (file-acl tmp-name1) (file-acl tmp-name3))) 2985 (string-equal (file-acl tmp-name1) (file-acl tmp-name3)))
2986 ;; Copy ACL. 2986 ;; Copy ACL. Since we don't know whether Emacs is built
2987 (set-file-acl tmp-name3 (file-acl tmp-name1)) 2987 ;; with local ACL support, we must check it.
2988 (should (string-equal (file-acl tmp-name1) (file-acl tmp-name3))) 2988 (when (set-file-acl tmp-name3 (file-acl tmp-name1))
2989 (file-acl tmp-name1) (file-acl tmp-name3))
2990 (should (string-equal (file-acl tmp-name1) (file-acl tmp-name3))))
2989 2991
2990 ;; Two files with same ACLs. 2992 ;; Two files with same ACLs.
2991 (delete-file tmp-name1) 2993 (delete-file tmp-name1)