summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2021-01-23 16:59:07 +0100
committerMichael Albinus <michael.albinus@gmx.de>2021-01-23 16:59:07 +0100
commit6a6fde0375d499a418f81a0dafe803d6cb0d4c97 (patch)
treee8a97c12ed5e85a93ecaa199e639df0355532306 /test
parentf0517ab9c2e140d306fea6285589a1c02dac5064 (diff)
downloademacs-6a6fde0375d499a418f81a0dafe803d6cb0d4c97.tar.gz
Fix failed autorevert test on emba
* test/lisp/autorevert-tests.el (auto-revert-test05-global-notify): Check, whether buffer is alive.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/autorevert-tests.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el
index 6da515bb2c8..683e3ea30d4 100644
--- a/test/lisp/autorevert-tests.el
+++ b/test/lisp/autorevert-tests.el
@@ -524,8 +524,10 @@ This expects `auto-revert--messages' to be bound by
(auto-revert-test--write-file "1-b" file-1)
(auto-revert-test--wait-for-buffer-text
buf-1 "1-b" (auto-revert--timeout))
- (should (buffer-local-value
- 'auto-revert-notify-watch-descriptor buf-1))
+ ;; On emba, `buf-1' is a killed buffer.
+ (when (buffer-live-p buf-1)
+ (should (buffer-local-value
+ 'auto-revert-notify-watch-descriptor buf-1)))
;; Write a buffer to a new file, then modify the new file on disk.
(with-current-buffer buf-2