]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix intermittent failure of dired-test-bug27243-02
authorPeter Oliver <git@mavit.org.uk>
Mon, 15 Jul 2024 11:03:47 +0000 (12:03 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 17 Jul 2024 21:46:29 +0000 (23:46 +0200)
* test/lisp/dired-tests.el (dired-test-bug27243-02): Exclude free disk
space from dired listing in this test, in case it changes while it's
running and confuses the result.  (Bug#72120)

(cherry picked from commit a7b68c25640de8214bc759d20180373c2dbcfa16)

test/lisp/dired-tests.el

index 651b77500a153ef67755b2893707a612086b8153..3b1f80d3d3dbc7c1b345ab1b4af3646291d79405 100644 (file)
 (ert-deftest dired-test-bug27243-02 ()
   "Test for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27243#28 ."
   (ert-with-temp-directory test-dir
-    (let ((dired-auto-revert-buffer t) buffers)
+    (let ((dired-auto-revert-buffer t)
+          (dired-free-space nil)
+          buffers)
       ;; On MS-Windows, get rid of 8+3 short names in test-dir, if the
       ;; corresponding long file names exist, otherwise such names trip
       ;; string comparisons below.