aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEli Zaretskii2024-04-09 06:21:38 +0300
committerEli Zaretskii2024-04-09 06:21:38 +0300
commit93576969c2b53ff9d0d7b08768782e770f0cb0f4 (patch)
tree4f5366e69a17af2f70f684ba14505f625ab16014 /test
parenta4c766e057b9b05685433db010b6536148f29f1d (diff)
downloademacs-93576969c2b53ff9d0d7b08768782e770f0cb0f4.tar.gz
emacs-93576969c2b53ff9d0d7b08768782e770f0cb0f4.zip
; Fix the test in last change.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/ls-lisp-tests.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lisp/ls-lisp-tests.el b/test/lisp/ls-lisp-tests.el
index 81e3e163c9c..beecac22afc 100644
--- a/test/lisp/ls-lisp-tests.el
+++ b/test/lisp/ls-lisp-tests.el
@@ -45,6 +45,7 @@
45 (dired-internal-noselect dir "-la --time=ctime") 45 (dired-internal-noselect dir "-la --time=ctime")
46 (setq buf (current-buffer) 46 (setq buf (current-buffer)
47 str (format-time-string "%H:%M" ts)) 47 str (format-time-string "%H:%M" ts))
48 (goto-char (point-min))
48 (should (search-forward-regexp str nil t)) 49 (should (search-forward-regexp str nil t))
49 (kill-buffer)) 50 (kill-buffer))
50 (setq ts (- (float-time) 60)) 51 (setq ts (- (float-time) 60))
@@ -53,6 +54,7 @@
53 (dired-internal-noselect dir "-la --sort=time") 54 (dired-internal-noselect dir "-la --sort=time")
54 (setq buf (current-buffer) 55 (setq buf (current-buffer)
55 str (format-time-string "%H:%M" ts)) 56 str (format-time-string "%H:%M" ts))
57 (goto-char (point-min))
56 (should (search-forward-regexp str nil t)) 58 (should (search-forward-regexp str nil t))
57 (kill-buffer)) 59 (kill-buffer))
58 (setq ts (- (float-time) 120)) 60 (setq ts (- (float-time) 120))
@@ -61,6 +63,7 @@
61 (dired-internal-noselect dir "-la --time=atime") 63 (dired-internal-noselect dir "-la --time=atime")
62 (setq buf (current-buffer) 64 (setq buf (current-buffer)
63 str (format-time-string "%H:%M" ts)) 65 str (format-time-string "%H:%M" ts))
66 (goto-char (point-min))
64 (should (search-forward-regexp str nil t)) 67 (should (search-forward-regexp str nil t))
65 (kill-buffer))) 68 (kill-buffer)))
66 (when (buffer-live-p buf) (kill-buffer buf)))))) 69 (when (buffer-live-p buf) (kill-buffer buf))))))