; Skip autorevert test when notify support is missing
authorUlrich Müller <ulm@gentoo.org>
Fri, 21 Feb 2025 08:15:50 +0000 (09:15 +0100)
committerUlrich Müller <ulm@gentoo.org>
Fri, 21 Feb 2025 12:02:58 +0000 (13:02 +0100)
* test/lisp/autorevert-tests.el
(auto-revert-test07-auto-revert-several-buffers): Skip if file
notification support is not available.  (Bug#76459)

test/lisp/autorevert-tests.el

index 6f5e0192791d0589065ea8d391a1e1fd0297c4ac..73fd5a66fa23c2c7353a482f3dbf6b502de0386e 100644 (file)
@@ -572,6 +572,8 @@ This expects `auto-revert--messages' to be bound by
 ;; This is inspired by Bug#44638, Bug#71424.
 (ert-deftest auto-revert-test07-auto-revert-several-buffers ()
   "Check autorevert for several buffers visiting the same file."
+  (skip-unless (or file-notify--library
+                   (file-remote-p temporary-file-directory)))
   ;; (with-auto-revert-test
   (ert-with-temp-file tmpfile
     (let ((auto-revert-use-notify t)