diff options
| author | Michael Albinus | 2021-03-28 21:06:24 +0200 |
|---|---|---|
| committer | Michael Albinus | 2021-03-28 21:06:24 +0200 |
| commit | 8a92030f6af29c8b4892218052c2f8da00c45806 (patch) | |
| tree | eec23008be91bd283c0645a6bfff4686d3be6942 | |
| parent | 91eea74229e074f45eced0263755b0d15ee38874 (diff) | |
| download | emacs-8a92030f6af29c8b4892218052c2f8da00c45806.tar.gz emacs-8a92030f6af29c8b4892218052c2f8da00c45806.zip | |
Fix hang in autorevert-tests.el
* test/lisp/autorevert-tests.el (auto-revert--wait-for-revert):
Apply more robust check, whether file notification is used.
| -rw-r--r-- | test/lisp/autorevert-tests.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el index 6ced9a1ac8f..8b8313df015 100644 --- a/test/lisp/autorevert-tests.el +++ b/test/lisp/autorevert-tests.el | |||
| @@ -131,7 +131,9 @@ This expects `auto-revert--messages' to be bound by | |||
| 131 | (format-message | 131 | (format-message |
| 132 | "Reverting buffer `%s'\\." (buffer-name buffer)) | 132 | "Reverting buffer `%s'\\." (buffer-name buffer)) |
| 133 | auto-revert--messages))) | 133 | auto-revert--messages))) |
| 134 | (if (with-current-buffer buffer auto-revert-use-notify) | 134 | (if (and (or file-notify--library |
| 135 | (file-remote-p temporary-file-directory)) | ||
| 136 | (with-current-buffer buffer auto-revert-use-notify)) | ||
| 135 | (read-event nil nil 0.1) | 137 | (read-event nil nil 0.1) |
| 136 | (sleep-for 0.1))))) | 138 | (sleep-for 0.1))))) |
| 137 | 139 | ||