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.
This commit is contained in:
Michael Albinus 2015-12-06 09:40:23 +00:00
parent 2537dd90bd
commit 8b87522925

View file

@ -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."