diff options
| author | Eli Zaretskii | 2025-01-19 14:42:46 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2025-01-19 14:42:46 +0200 |
| commit | be786ab3bb263cb88e548f439562cbdf93587a3f (patch) | |
| tree | b2b6b88771cba4aa47718d903855aef662a91766 /test | |
| parent | f367b01f128223d3fc7c34985eccce744333fa8f (diff) | |
| download | emacs-be786ab3bb263cb88e548f439562cbdf93587a3f.tar.gz emacs-be786ab3bb263cb88e548f439562cbdf93587a3f.zip | |
; Fix autorevert-tests on MS-Windows
* test/lisp/autorevert-tests.el
(auto-revert-test04-auto-revert-mode-dired): Fix test on
MS-Windows.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/autorevert-tests.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el index 8133b5812a7..5e46216cc42 100644 --- a/test/lisp/autorevert-tests.el +++ b/test/lisp/autorevert-tests.el | |||
| @@ -390,11 +390,17 @@ This expects `auto-revert--messages' to be bound by | |||
| 390 | (should auto-revert-mode) | 390 | (should auto-revert-mode) |
| 391 | (should | 391 | (should |
| 392 | (string-match name (substring-no-properties (buffer-string)))) | 392 | (string-match name (substring-no-properties (buffer-string)))) |
| 393 | ;; If we don't sleep for a while, this test fails on | ||
| 394 | ;; MS-Windows. | ||
| 395 | (if (eq system-type 'windows-nt) | ||
| 396 | (sleep-for 0.5)) | ||
| 393 | 397 | ||
| 394 | (ert-with-message-capture auto-revert--messages | 398 | (ert-with-message-capture auto-revert--messages |
| 395 | ;; Delete file. | 399 | ;; Delete file. |
| 396 | (delete-file tmpfile) | 400 | (delete-file tmpfile) |
| 397 | (auto-revert--wait-for-revert buf)) | 401 | (auto-revert--wait-for-revert buf)) |
| 402 | (if (eq system-type 'windows-nt) | ||
| 403 | (sleep-for 1)) | ||
| 398 | ;; Check, that the buffer has been reverted. | 404 | ;; Check, that the buffer has been reverted. |
| 399 | (should-not | 405 | (should-not |
| 400 | (string-match name (substring-no-properties (buffer-string)))) | 406 | (string-match name (substring-no-properties (buffer-string)))) |