Subject: Re: bug#76459: 30.1; Test failure in auto-revert-test07-auto-revert-several-buffers

From: Ulrich Müller <[email-masked]>
Date: Fri, 21 Feb 2025 09:42:33 +0100

>>>>> On Fri, 21 Feb 2025, Eli Zaretskii wrote:

> Not reproducible here.  I guess it could be specific to the inotify
> back-end.

AFAICS the test fails when Emacs is configured with option
--with-file-notification=no.

Attached patch fixes the problem for me.

>From d3c1ecfb788e1a291683df0e9489fe8660b7e6df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <[email-masked]>
Date: Fri, 21 Feb 2025 09:15:50 +0100
Subject: [PATCH] ; Skip autorevert test when notify support is missing

* 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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el
index 6f5e0192791..73fd5a66fa2 100644
--- a/test/lisp/autorevert-tests.el
+++ b/test/lisp/autorevert-tests.el
@@ -572,6 +572,8 @@ auto-revert-test06-write-file
 ;; 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)
-- 
2.48.1