]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix some problems of Bug#36940
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 24 Aug 2019 08:10:05 +0000 (10:10 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 24 Aug 2019 08:10:05 +0000 (10:10 +0200)
* 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

index 180f746c647619de4a35ce58af43c0ca8dc356e7..557536a0ebc78d3939f9dea31524f71c0ad9a0e3 100644 (file)
@@ -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)))