]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix the test in last change.
authorEli Zaretskii <eliz@gnu.org>
Tue, 9 Apr 2024 03:21:38 +0000 (06:21 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Apr 2024 20:29:45 +0000 (22:29 +0200)
(cherry picked from commit 93576969c2b53ff9d0d7b08768782e770f0cb0f4)

test/lisp/ls-lisp-tests.el

index 81e3e163c9c719e807bac7de0ffcd07f616ef186..beecac22afc846b9c640e2d5fe93e12121dbf927 100644 (file)
@@ -45,6 +45,7 @@
                (dired-internal-noselect dir "-la --time=ctime")
              (setq buf (current-buffer)
                    str (format-time-string "%H:%M" ts))
+             (goto-char (point-min))
              (should (search-forward-regexp str nil t))
              (kill-buffer))
            (setq ts (- (float-time) 60))
@@ -53,6 +54,7 @@
                (dired-internal-noselect dir "-la --sort=time")
              (setq buf (current-buffer)
                    str (format-time-string "%H:%M" ts))
+             (goto-char (point-min))
              (should (search-forward-regexp str nil t))
              (kill-buffer))
            (setq ts (- (float-time) 120))
@@ -61,6 +63,7 @@
                (dired-internal-noselect dir "-la --time=atime")
              (setq buf (current-buffer)
                    str (format-time-string "%H:%M" ts))
+             (goto-char (point-min))
              (should (search-forward-regexp str nil t))
              (kill-buffer)))
        (when (buffer-live-p buf) (kill-buffer buf))))))