]> git.eshelyaron.com Git - emacs.git/commitdiff
Adjust multi-test-files-simple test for Windows
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 29 Dec 2021 15:06:32 +0000 (16:06 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 29 Dec 2021 15:06:32 +0000 (16:06 +0100)
* test/lisp/emacs-lisp/multisession-tests.el
(multi-test-files-simple): Adjust test to Emacs timestamp
resolution on Windows.

test/lisp/emacs-lisp/multisession-tests.el

index f1dbbb29fd1eacbb9e480767b25dabb0a44c2140..6618699c4df201cf518026eaaba53202bc7a74e3 100644 (file)
                         ""
                         :synchronized t)
                       (cl-incf (multisession-value multisession--sfoo))))))
+      ;; On Windows, we don't have sub-second resolution.
+      (when (memq system-type '(windows-nt haiku))
+        (sleep-for 2))
       (should (= (multisession-value multisession--sfoo) 2)))))
 
 (ert-deftest multi-test-files-busy ()