[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 918ed4904b 1/3: Adjust multi-test-files-simple test for Windows
From: |
Lars Ingebrigtsen |
Subject: |
master 918ed4904b 1/3: Adjust multi-test-files-simple test for Windows |
Date: |
Wed, 29 Dec 2021 10:09:41 -0500 (EST) |
branch: master
commit 918ed4904bdbb976a40b006c8874795756dce6a7
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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 f1dbbb29fd..6618699c4d 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 ()