]> git.eshelyaron.com Git - emacs.git/commitdiff
Try harder to stabilize dired-test-bug27243-02
authorPeter Oliver <git@mavit.org.uk>
Tue, 16 Jul 2024 23:06:02 +0000 (00:06 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 8 Jan 2025 08:36:39 +0000 (09:36 +0100)
* test/lisp/dired-tests.el (dired-test-bug27243-02): Don't rely on the
expected point, since columns will move if the size of the parent directory
changes order of magnitude.  (Bug#72120)

(cherry picked from commit 6a389d5be47d1c143054a69e7302371d3889d658)

test/lisp/dired-tests.el

index 4fb99b9b72880662e83e32e3806ba4a65c87eaff..be585d276ecb32632d69430f6eb6775f156e3fbb 100644 (file)
   "Test for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27243#28 ."
   (ert-with-temp-directory test-dir
     (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
             ;; Sanity check: point should now be back on the subdirectory.
             (should (eq (point) pt1))
             (push (dired test-dir) buffers)
-            (should (eq (point) pt1)))
+            (should (equal (dired-file-name-at-point)
+                           (concat (file-name-as-directory test-dir)
+                                   (file-name-as-directory "test-subdir")))))
         (dolist (buf buffers)
           (when (buffer-live-p buf) (kill-buffer buf)))))))