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:
parent
2537dd90bd
commit
8b87522925
1 changed files with 3 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Reference in a new issue