diff options
| author | Michael Albinus | 2017-11-19 11:06:19 +0100 |
|---|---|---|
| committer | Michael Albinus | 2017-11-19 11:06:19 +0100 |
| commit | ecda09c22dd546af70cc02bd6211640f5b38558d (patch) | |
| tree | 9e1947be97f1ca63e1a774e7ef4421d8cb29a70d | |
| parent | afbd8140e41abcc32c628cf493cc2783fe348115 (diff) | |
| download | emacs-ecda09c22dd546af70cc02bd6211640f5b38558d.tar.gz emacs-ecda09c22dd546af70cc02bd6211640f5b38558d.zip | |
; * test/lisp/net/tramp-tests.el (tramp-test24-file-acl): More instrumentation
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 6d5cc5df8ff..1ad286bf60b 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -2942,23 +2942,14 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 2942 | (should (file-acl tmp-name1)) | 2942 | (should (file-acl tmp-name1)) |
| 2943 | (copy-file tmp-name1 tmp-name2 nil nil nil 'preserve-permissions) | 2943 | (copy-file tmp-name1 tmp-name2 nil nil nil 'preserve-permissions) |
| 2944 | (should (file-acl tmp-name2)) | 2944 | (should (file-acl tmp-name2)) |
| 2945 | (tramp--test-message | ||
| 2946 | "tmp-name1:\n%stmp-name2:\n%s" | ||
| 2947 | (file-acl tmp-name1) (file-acl tmp-name2)) | ||
| 2948 | (should (string-equal (file-acl tmp-name1) (file-acl tmp-name2))) | 2945 | (should (string-equal (file-acl tmp-name1) (file-acl tmp-name2))) |
| 2949 | ;; Different permissions mean different ACLs. | 2946 | ;; Different permissions mean different ACLs. |
| 2950 | (set-file-modes tmp-name1 #o777) | 2947 | (set-file-modes tmp-name1 #o777) |
| 2951 | (set-file-modes tmp-name2 #o444) | 2948 | (set-file-modes tmp-name2 #o444) |
| 2952 | (tramp--test-message | ||
| 2953 | "tmp-name1:\n%stmp-name2:\n%s" | ||
| 2954 | (file-acl tmp-name1) (file-acl tmp-name2)) | ||
| 2955 | (should-not | 2949 | (should-not |
| 2956 | (string-equal (file-acl tmp-name1) (file-acl tmp-name2))) | 2950 | (string-equal (file-acl tmp-name1) (file-acl tmp-name2))) |
| 2957 | ;; Copy ACL. | 2951 | ;; Copy ACL. |
| 2958 | (should (set-file-acl tmp-name2 (file-acl tmp-name1))) | 2952 | (should (set-file-acl tmp-name2 (file-acl tmp-name1))) |
| 2959 | (tramp--test-message | ||
| 2960 | "tmp-name1:\n%stmp-name2:\n%s" | ||
| 2961 | (file-acl tmp-name1) (file-acl tmp-name2)) | ||
| 2962 | (should (string-equal (file-acl tmp-name1) (file-acl tmp-name2))) | 2953 | (should (string-equal (file-acl tmp-name1) (file-acl tmp-name2))) |
| 2963 | ;; An invalid ACL does not harm. | 2954 | ;; An invalid ACL does not harm. |
| 2964 | (should-not (set-file-acl tmp-name2 "foo"))) | 2955 | (should-not (set-file-acl tmp-name2 "foo"))) |
| @@ -2989,12 +2980,13 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 2989 | (file-acl tmp-name1) (file-acl tmp-name3)) | 2980 | (file-acl tmp-name1) (file-acl tmp-name3)) |
| 2990 | (should-not | 2981 | (should-not |
| 2991 | (string-equal (file-acl tmp-name1) (file-acl tmp-name3))) | 2982 | (string-equal (file-acl tmp-name1) (file-acl tmp-name3))) |
| 2992 | ;; Copy ACL. | 2983 | ;; Copy ACL. Since we don't know whether Emacs is built |
| 2993 | (set-file-acl tmp-name3 (file-acl tmp-name1)) | 2984 | ;; with local ACL support, we must check it. |
| 2994 | (tramp--test-message | 2985 | (when (set-file-acl tmp-name3 (file-acl tmp-name1)) |
| 2995 | "tmp-name1:\n%stmp-name3:\n%s" | 2986 | (tramp--test-message |
| 2996 | (file-acl tmp-name1) (file-acl tmp-name3)) | 2987 | "tmp-name1:\n%stmp-name3:\n%s" |
| 2997 | (should (string-equal (file-acl tmp-name1) (file-acl tmp-name3))) | 2988 | (file-acl tmp-name1) (file-acl tmp-name3)) |
| 2989 | (should (string-equal (file-acl tmp-name1) (file-acl tmp-name3)))) | ||
| 2998 | 2990 | ||
| 2999 | ;; Two files with same ACLs. | 2991 | ;; Two files with same ACLs. |
| 3000 | (delete-file tmp-name1) | 2992 | (delete-file tmp-name1) |