Skip to content

Commit 331f3f9

Browse files
committed
Merge from origin/emacs-27
9b6872b ; * test/lisp/calc/calc-tests.el: Fix warnings 957cdca Make minibuffer-tests work in out-of-tree builds (bug#38816) 2065316 Make comint-tests more robust (bug#38813)
2 parents e729ff5 + 9b6872b commit 331f3f9

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

test/lisp/calc/calc-tests.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
(require 'calc)
3030
(require 'calc-ext)
3131
(require 'calc-units)
32+
(require 'calc-forms)
3233

3334
;; XXX The order in which calc libraries (in particular calc-units)
3435
;; are loaded influences whether a calc integer in an expression

test/lisp/comint-tests.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ alter normal password flow."
6464
(with-temp-buffer
6565
(make-comint-in-buffer "test-comint-password" (current-buffer) cat)
6666
(let ((proc (get-buffer-process (current-buffer))))
67+
(set-process-query-on-exit-flag proc nil)
6768
(comint-send-string proc "Password: ")
68-
(accept-process-output proc 0 1 t)
6969
(comint-send-eof)
70-
(accept-process-output proc 0 1 t)
70+
(while (accept-process-output proc 0.1 nil t))
7171
(should (string-equal (buffer-substring-no-properties (point-min) (point-max))
7272
"Password: PaSsWoRd123\n"))
7373
(when (process-live-p proc)
@@ -87,10 +87,10 @@ flow. Hook function returns alternative password."
8787
(with-temp-buffer
8888
(make-comint-in-buffer "test-comint-password" (current-buffer) cat)
8989
(let ((proc (get-buffer-process (current-buffer))))
90+
(set-process-query-on-exit-flag proc nil)
9091
(comint-send-string proc "Password: ")
91-
(accept-process-output proc 0 1 t)
9292
(comint-send-eof)
93-
(accept-process-output proc 0 1 t)
93+
(while (accept-process-output proc 0.1 nil t))
9494
(should (string-equal (buffer-substring-no-properties (point-min) (point-max))
9595
"Password: MaGiC-PaSsWoRd789\n"))
9696
(when (process-live-p proc)
@@ -110,10 +110,10 @@ password flow if it returns a nil value."
110110
(with-temp-buffer
111111
(make-comint-in-buffer "test-comint-password" (current-buffer) cat)
112112
(let ((proc (get-buffer-process (current-buffer))))
113+
(set-process-query-on-exit-flag proc nil)
113114
(comint-send-string proc "Password: ")
114-
(accept-process-output proc 0 1 t)
115115
(comint-send-eof)
116-
(accept-process-output proc 0 1 t)
116+
(while (accept-process-output proc 0.1 nil t))
117117
(should (string-equal (buffer-substring-no-properties (point-min) (point-max))
118118
"Password: PaSsWoRd456\n"))
119119
(when (process-live-p proc)

test/lisp/minibuffer-tests.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282

8383
(ert-deftest completion-table-test-quoting ()
8484
(let ((process-environment
85-
`("CTTQ1=ed" "CTTQ2=et/" ,@process-environment)))
85+
`("CTTQ1=ed" "CTTQ2=et/" ,@process-environment))
86+
(default-directory (expand-file-name "test" source-directory)))
8687
(pcase-dolist (`(,input ,output)
8788
'(
8889
;; Test that $ in files is properly $$ quoted.

0 commit comments

Comments
 (0)