aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/lisp/net/tramp-tests.el19
1 files changed, 15 insertions, 4 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 557536a0ebc..9930a2c9e11 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -3098,6 +3098,12 @@ They might differ only in time attributes or directory size."
3098 (let ((attr1 (copy-sequence attr1)) 3098 (let ((attr1 (copy-sequence attr1))
3099 (attr2 (copy-sequence attr2)) 3099 (attr2 (copy-sequence attr2))
3100 (start-time (- tramp--test-start-time 10))) 3100 (start-time (- tramp--test-start-time 10)))
3101 ;; Link number. For directories, it includes the number of
3102 ;; subdirectories. Set it to 1.
3103 (when (eq (tramp-compat-file-attribute-type attr1) t)
3104 (setcar (nthcdr 1 attr1) 1))
3105 (when (eq (tramp-compat-file-attribute-type attr2) t)
3106 (setcar (nthcdr 1 attr2) 1))
3101 ;; Access time. 3107 ;; Access time.
3102 (setcar (nthcdr 4 attr1) tramp-time-dont-know) 3108 (setcar (nthcdr 4 attr1) tramp-time-dont-know)
3103 (setcar (nthcdr 4 attr2) tramp-time-dont-know) 3109 (setcar (nthcdr 4 attr2) tramp-time-dont-know)
@@ -5285,10 +5291,15 @@ This requires restrictions of file name syntax."
5285 (goto-char (point-min)) 5291 (goto-char (point-min))
5286 (should 5292 (should
5287 (re-search-forward 5293 (re-search-forward
5288 (format 5294 ;; We must use proper encoding on macOS. See
5289 "^%s=%s$" 5295 ;; Bug#36940.
5290 (regexp-quote envvar) 5296 (funcall
5291 (regexp-quote (getenv envvar)))))))))) 5297 (if (eq coding-system-for-read 'utf-8-hfs)
5298 'ucs-normalize-HFS-NFD-string 'identity)
5299 (format
5300 "^%s=%s$"
5301 (regexp-quote envvar)
5302 (regexp-quote (getenv envvar)))))))))))
5292 5303
5293 ;; Cleanup. 5304 ;; Cleanup.
5294 (ignore-errors (delete-directory tmp-name1 'recursive)) 5305 (ignore-errors (delete-directory tmp-name1 'recursive))