summaryrefslogtreecommitdiff
path: root/test/lisp/autorevert-tests.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2019-08-20 21:32:34 +0200
committerMichael Albinus <michael.albinus@gmx.de>2019-08-20 21:32:34 +0200
commitfde614f4cc531f778ba082b0f29a7422be8ea433 (patch)
tree57bf6ef3892212e06f0f6a4d40d6a989d240ffb9 /test/lisp/autorevert-tests.el
parent68f086e66906a5aa9bb447cdebac71ced98a0663 (diff)
downloademacs-fde614f4cc531f778ba082b0f29a7422be8ea433.tar.gz
Another attempt to fix bug#32645
* test/lisp/autorevert-tests.el () (auto-revert-test02-auto-revert-deleted-file): * test/lisp/filenotify-tests.el (file-notify-test04-autorevert): Check `file-notify-valid-p', not that the descriptor is nil.
Diffstat (limited to 'test/lisp/autorevert-tests.el')
-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 c024739f6e5..0ff3c5a4071 100644
--- a/test/lisp/autorevert-tests.el
+++ b/test/lisp/autorevert-tests.el
@@ -283,7 +283,8 @@ This expects `auto-revert--messages' to be bound by
(write-region "any text" nil tmpfile nil 'no-message)
(setq buf (find-file-noselect tmpfile))
(with-current-buffer buf
- (should-not auto-revert-notify-watch-descriptor)
+ (should-not
+ (file-notify-valid-p auto-revert-notify-watch-descriptor))
(should (string-equal (buffer-string) "any text"))
;; `buffer-stale--default-function' checks for
;; `verify-visited-file-modtime'. We must ensure that
@@ -314,7 +315,8 @@ This expects `auto-revert--messages' to be bound by
;; With w32notify, and on emba, the `stopped' events are not sent.
(or (eq file-notify--library 'w32notify)
(getenv "EMACS_EMBA_CI")
- (should-not auto-revert-notify-watch-descriptor))
+ (should-not
+ (file-notify-valid-p auto-revert-notify-watch-descriptor)))
;; Once the file has been recreated, the buffer shall be
;; reverted.