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)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 15 Jul 2024 21:22:16 +0000 (23:22 +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)

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.