summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2026-03-28 09:29:56 +0300
committerEli Zaretskii <eliz@gnu.org>2026-03-28 09:29:56 +0300
commitd5a3a43745321939f3fb93fbf215849e437a111b (patch)
treebe11941a46961e90698baaa7479f4ab3ced9868e /test
parentaf0f9b3188bedbe82c7399062c2f70d6c1c3ff8d (diff)
; Fix last change in dired-tests.el.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/dired-tests.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index 407f2545745..77518f17171 100644
--- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -674,7 +674,8 @@ The current directory at call time should not affect the result (Bug#50630)."
(dired (file-name-directory file))))
(warnbuf (get-buffer "*Warnings*")))
(should (dired--filename-with-newline-p))
- (let ((beg (point))) ; beginning of file name
+ (let ((beg (point)) ; beginning of file name
+ (_ (dired-move-to-end-of-filename)))
(should (search-backward "with newline")) ; literal space in file name
(should (search-backward "\n" beg))) ; literal newline in file name
(if noninteractive
@@ -710,7 +711,8 @@ The current directory at call time should not affect the result (Bug#50630)."
(with-current-buffer buf
(should (dired--filename-with-newline-p))
(dired--toggle-b-switch)
- (let ((beg (point))) ; beginning of file name
+ (let ((beg (point)) ; beginning of file name
+ (_ (dired-move-to-end-of-filename)))
(should (search-backward "with\\ newline")) ; result of ls -b switch
(should (search-backward "\\n" beg)))) ; result of ls -b switch
(if noninteractive