From: Tino Calancha Date: Sun, 6 Aug 2017 13:16:56 +0000 (+0900) Subject: Minor tweak in a dired test X-Git-Tag: emacs-26.0.90~517^2~4 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b1b99edd3ee587a5154106d4d16547eac4916c55;p=emacs.git 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. --- 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.