From: Michael Albinus Date: Sat, 24 Aug 2019 08:10:05 +0000 (+0200) Subject: Fix some problems of Bug#36940 X-Git-Tag: emacs-27.0.90~1328^2~90 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=42f8fa80706ee34bba98a922e2f42edcfe474bc9;p=emacs.git 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. --- diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 180f746c647..557536a0ebc 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)))