[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 42f8fa8: Fix some problems of Bug#36940
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master 42f8fa8: Fix some problems of Bug#36940 |
Date: |
Sat, 24 Aug 2019 04:10:12 -0400 (EDT) |
branch: master
commit 42f8fa80706ee34bba98a922e2f42edcfe474bc9
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
Fix some problems of Bug#36940
* test/lisp/net/tramp-tests.el (tramp-test22-file-times): Do not
compare time value lists by `equal'. (Bug#36940).
(tramp-test30-make-process): Adapt "kill" message to match on macOS.
---
test/lisp/net/tramp-tests.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 180f746..557536a 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -3533,9 +3533,10 @@ This tests also `make-symbolic-link', `file-truename'
and `add-name-to-file'."
(file-attributes tmp-name1))
tramp-time-dont-know)
(should
- (equal (tramp-compat-file-attribute-modification-time
- (file-attributes tmp-name1))
- (seconds-to-time 1)))
+ (tramp-compat-time-equal-p
+ (tramp-compat-file-attribute-modification-time
+ (file-attributes tmp-name1))
+ (seconds-to-time 1)))
(write-region "bla" nil tmp-name2)
(should (file-exists-p tmp-name2))
(should (file-newer-than-file-p tmp-name2 tmp-name1))
@@ -4182,8 +4183,9 @@ This tests also `make-symbolic-link', `file-truename' and
`add-name-to-file'."
(with-timeout (10 (tramp--test-timeout-handler))
(while (accept-process-output proc 0 nil t)))
;; We cannot use `string-equal', because tramp-adb.el
- ;; echoes also the sent string.
- (should (string-match "killed\n\\'" (buffer-string))))
+ ;; echoes also the sent string. And a remote macOS sends
+ ;; a slightly modified string.
+ (should (string-match "killed.*\n\\'" (buffer-string))))
;; Cleanup.
(ignore-errors (delete-process proc)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 42f8fa8: Fix some problems of Bug#36940,
Michael Albinus <=