From 8b87522925c4acaa0b35459db2657fc4fc79f8d1 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 6 Dec 2015 09:40:23 +0000 Subject: [PATCH] Fix auto-revert-tests.el when filenotify isn't used * test/automated/auto-revert-tests.el (auto-revert--wait-for-revert): Make it working also when filenotify isn't used. --- test/automated/auto-revert-tests.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/automated/auto-revert-tests.el b/test/automated/auto-revert-tests.el index 2745f106087..e03ed8cb687 100644 --- a/test/automated/auto-revert-tests.el +++ b/test/automated/auto-revert-tests.el @@ -39,7 +39,9 @@ (null (string-match (format-message "Reverting buffer `%s'." (buffer-name buffer)) (buffer-string))) - (read-event nil nil 0.1))))) + (if (with-current-buffer buffer auto-revert-use-notify) + (read-event nil nil 0.1) + (sleep-for 0.1)))))) (ert-deftest auto-revert-test00-auto-revert-mode () "Check autorevert for a file." -- 2.39.2