diff options
| author | Michael Albinus | 2015-12-06 09:40:23 +0000 |
|---|---|---|
| committer | Michael Albinus | 2015-12-06 09:40:23 +0000 |
| commit | 8b87522925c4acaa0b35459db2657fc4fc79f8d1 (patch) | |
| tree | 3eecd4deac6fe7514b5dff446e098ecf62aa5261 | |
| parent | 2537dd90bd47549ac774175a92d8b88fa0c69d67 (diff) | |
| download | emacs-8b87522925c4acaa0b35459db2657fc4fc79f8d1.tar.gz emacs-8b87522925c4acaa0b35459db2657fc4fc79f8d1.zip | |
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.
| -rw-r--r-- | test/automated/auto-revert-tests.el | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
| 39 | (null (string-match | 39 | (null (string-match |
| 40 | (format-message "Reverting buffer `%s'." (buffer-name buffer)) | 40 | (format-message "Reverting buffer `%s'." (buffer-name buffer)) |
| 41 | (buffer-string))) | 41 | (buffer-string))) |
| 42 | (read-event nil nil 0.1))))) | 42 | (if (with-current-buffer buffer auto-revert-use-notify) |
| 43 | (read-event nil nil 0.1) | ||
| 44 | (sleep-for 0.1)))))) | ||
| 43 | 45 | ||
| 44 | (ert-deftest auto-revert-test00-auto-revert-mode () | 46 | (ert-deftest auto-revert-test00-auto-revert-mode () |
| 45 | "Check autorevert for a file." | 47 | "Check autorevert for a file." |