From b1b99edd3ee587a5154106d4d16547eac4916c55 Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Sun, 6 Aug 2017 22:16:56 +0900 Subject: [PATCH] Minor tweak in a dired test * test/lisp/dired-tests.el (dired-test-bug27968): Ensure the new header has different length than the original one. --- test/lisp/dired-tests.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el index 105a79f0014..981afdd929e 100644 --- a/test/lisp/dired-tests.el +++ b/test/lisp/dired-tests.el @@ -333,9 +333,13 @@ (save-excursion (goto-char 1) (forward-line 1) - (let ((inhibit-read-only t)) + (let ((inhibit-read-only t) + (new-header " test-bug27968")) (delete-region (point) (point-at-eol)) - (insert " test-bug27968"))) + (when (= orig-len (length new-header)) + ;; Wow lucky guy! I must buy lottery today. + (setq new-header (concat new-header " :-)"))) + (insert new-header))) (setq len (funcall header-len-fn) diff (- len orig-len)) (should-not (zerop diff)) ; Header length has changed. -- 2.39.5