aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/tramp-tests.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index f60dea36bf5..d49914797f5 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -56,6 +56,7 @@
56(declare-function tramp-list-tramp-buffers "tramp-cmds") 56(declare-function tramp-list-tramp-buffers "tramp-cmds")
57(declare-function tramp-method-out-of-band-p "tramp-sh") 57(declare-function tramp-method-out-of-band-p "tramp-sh")
58(declare-function tramp-smb-get-localname "tramp-smb") 58(declare-function tramp-smb-get-localname "tramp-smb")
59(declare-function tramp-time-diff "tramp")
59(defvar auto-save-file-name-transforms) 60(defvar auto-save-file-name-transforms)
60(defvar tramp-connection-properties) 61(defvar tramp-connection-properties)
61(defvar tramp-copy-size-limit) 62(defvar tramp-copy-size-limit)
@@ -3084,9 +3085,18 @@ This tests also `access-file', `file-readable-p',
3084 3085
3085(defsubst tramp--test-file-attributes-equal-p (attr1 attr2) 3086(defsubst tramp--test-file-attributes-equal-p (attr1 attr2)
3086 "Check, whether file attributes ATTR1 and ATTR2 are equal. 3087 "Check, whether file attributes ATTR1 and ATTR2 are equal.
3087They might differ only in access time." 3088They might differ only in time attributes."
3089 ;; Access time.
3088 (setcar (nthcdr 4 attr1) tramp-time-dont-know) 3090 (setcar (nthcdr 4 attr1) tramp-time-dont-know)
3089 (setcar (nthcdr 4 attr2) tramp-time-dont-know) 3091 (setcar (nthcdr 4 attr2) tramp-time-dont-know)
3092 ;; Modification time.
3093 (when (< (abs (tramp-time-diff (nth 5 attr1) (nth 5 attr2))) 5)
3094 (setcar (nthcdr 5 attr1) tramp-time-dont-know)
3095 (setcar (nthcdr 5 attr2) tramp-time-dont-know))
3096 ;; Status change time.
3097 (when (< (abs (tramp-time-diff (nth 6 attr1) (nth 6 attr2))) 5)
3098 (setcar (nthcdr 6 attr1) tramp-time-dont-know)
3099 (setcar (nthcdr 6 attr2) tramp-time-dont-know))
3090 (equal attr1 attr2)) 3100 (equal attr1 attr2))
3091 3101
3092;; This isn't 100% correct, but better than no explainer at all. 3102;; This isn't 100% correct, but better than no explainer at all.