emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 6a6fde0: Fix failed autorevert test on emba


From: Michael Albinus
Subject: master 6a6fde0: Fix failed autorevert test on emba
Date: Sat, 23 Jan 2021 10:59:15 -0500 (EST)

branch: master
commit 6a6fde0375d499a418f81a0dafe803d6cb0d4c97
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    Fix failed autorevert test on emba
    
    * test/lisp/autorevert-tests.el (auto-revert-test05-global-notify):
    Check, whether buffer is alive.
---
 test/lisp/autorevert-tests.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el
index 6da515b..683e3ea 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]