]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix autorevert-tests on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sat, 4 Feb 2017 11:49:55 +0000 (13:49 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 4 Feb 2017 11:49:55 +0000 (13:49 +0200)
* test/lisp/autorevert-tests.el
(auto-revert-test02-auto-revert-deleted-file): Don't check that
auto-revert-use-notify was reset to nil on w32.

test/lisp/autorevert-tests.el

index c082ba95639bfaef1c4337343a2c27d7d0af0527..c6f103321c62f88904983f71b5a688f8c40a9ae8 100644 (file)
@@ -190,7 +190,9 @@ This expects `auto-revert--messages' to be bound by
             ;; notification should be disabled, falling back to
             ;; polling.
             (should (string-match "any text" (buffer-string)))
-            (should-not auto-revert-use-notify)
+            ;; With w32notify, the 'stopped' events are not sent.
+            (or (eq file-notify--library 'w32notify)
+                (should-not auto-revert-use-notify))
 
             ;; Once the file has been recreated, the buffer shall be
             ;; reverted.