From 918ed4904bdbb976a40b006c8874795756dce6a7 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 29 Dec 2021 16:06:32 +0100 Subject: [PATCH] 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. --- test/lisp/emacs-lisp/multisession-tests.el | 3 +++ 1 file changed, 3 insertions(+) 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 () -- 2.39.2