GNU bug report logs - #76459
30.1; Test failure in auto-revert-test07-auto-revert-several-buffers

Previous Next

Package: emacs;

Reported by: Ulrich Müller <ulm <at> gentoo.org>

Date: Fri, 21 Feb 2025 07:49:01 UTC

Severity: normal

Fixed in version 30.1

Done: Ulrich Müller <ulm <at> gentoo.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ulrich Müller <ulm <at> gentoo.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 76459 <at> debbugs.gnu.org, Ulrich Müller <ulm <at> gentoo.org>
Subject: bug#76459: 30.1; Test failure in auto-revert-test07-auto-revert-several-buffers
Date: Fri, 21 Feb 2025 09:42:33 +0100
[Message part 1 (text/plain, inline)]
>>>>> 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.

[0001-Skip-autorevert-test-when-notify-support-is-missing.patch (text/plain, inline)]
From d3c1ecfb788e1a291683df0e9489fe8660b7e6df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm <at> gentoo.org>
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


This bug report was last modified 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.