aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJim Porter2024-01-17 09:32:18 -0800
committerJim Porter2024-01-17 09:32:18 -0800
commit5f5faad249747ce5bd4b7f2968f737206c136265 (patch)
tree7f1593f572713059be4031eb2b481cc62c043760 /test
parentc5031a52c5c6ad74fab27d3754700e7457717516 (diff)
downloademacs-5f5faad249747ce5bd4b7f2968f737206c136265.tar.gz
emacs-5f5faad249747ce5bd4b7f2968f737206c136265.zip
; Fix test failures from the fix for bug#67661
* test/lisp/eshell/em-cmpl-tests.el (em-cmpl-test/file-completion/non-unique): Make test more robust.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/eshell/em-cmpl-tests.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lisp/eshell/em-cmpl-tests.el b/test/lisp/eshell/em-cmpl-tests.el
index 13e42ffac88..f778816c4e1 100644
--- a/test/lisp/eshell/em-cmpl-tests.el
+++ b/test/lisp/eshell/em-cmpl-tests.el
@@ -175,18 +175,18 @@ ACTUAL and EXPECTED should both be lists of strings."
175 (ert-with-temp-directory default-directory 175 (ert-with-temp-directory default-directory
176 (write-region nil nil (expand-file-name "file.txt")) 176 (write-region nil nil (expand-file-name "file.txt"))
177 (write-region nil nil (expand-file-name "file.el")) 177 (write-region nil nil (expand-file-name "file.el"))
178 ;; Complete the first time. This should insert the common prefix
179 ;; of our completions.
178 (should (equal (eshell-insert-and-complete "echo fi") 180 (should (equal (eshell-insert-and-complete "echo fi")
179 "echo file.")) 181 "echo file."))
182 ;; Make sure the completions buffer isn't displayed.
183 (should-not (get-buffer-window "*Completions*"))
180 ;; Now try completing again. 184 ;; Now try completing again.
181 (let ((minibuffer-message-timeout 0) 185 (let ((minibuffer-message-timeout 0)
182 (inhibit-message t)) 186 (inhibit-message t))
183 (completion-at-point)) 187 (completion-at-point))
184 ;; FIXME: We can't use `current-message' here. 188 ;; This time, we should display the completions buffer.
185 (with-current-buffer (messages-buffer) 189 (should (get-buffer-window "*Completions*")))))
186 (save-excursion
187 (goto-char (point-max))
188 (forward-line -1)
189 (should (looking-at "Complete, but not unique")))))))
190 190
191(ert-deftest em-cmpl-test/file-completion/glob () 191(ert-deftest em-cmpl-test/file-completion/glob ()
192 "Test completion of file names using a glob." 192 "Test completion of file names using a glob."