From: Lars Ingebrigtsen Date: Wed, 29 Dec 2021 15:06:32 +0000 (+0100) Subject: Adjust multi-test-files-simple test for Windows X-Git-Tag: emacs-29.0.90~3372 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=918ed4904bdbb976a40b006c8874795756dce6a7;p=emacs.git Adjust multi-test-files-simple test for Windows * test/lisp/emacs-lisp/multisession-tests.el (multi-test-files-simple): Adjust test to Emacs timestamp resolution on Windows. --- diff --git a/test/lisp/emacs-lisp/multisession-tests.el b/test/lisp/emacs-lisp/multisession-tests.el index f1dbbb29fd1..6618699c4df 100644 --- a/test/lisp/emacs-lisp/multisession-tests.el +++ b/test/lisp/emacs-lisp/multisession-tests.el @@ -130,6 +130,9 @@ "" :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 ()