aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2019-12-31 07:50:15 -0800
committerGlenn Morris2019-12-31 07:50:15 -0800
commit331f3f91045983ff24c66dcbb86f8032b1dcabab (patch)
treef1407f0461fdca5199bd4421507d71a865b0994e
parente729ff504b536ca67030382e5508c1c48f2d0944 (diff)
parent9b6872b4e4fa782d9df313ab771c23ad1e7f8eff (diff)
downloademacs-331f3f91045983ff24c66dcbb86f8032b1dcabab.tar.gz
emacs-331f3f91045983ff24c66dcbb86f8032b1dcabab.zip
Merge from origin/emacs-27
9b6872b4e4 ; * test/lisp/calc/calc-tests.el: Fix warnings 957cdca6f0 Make minibuffer-tests work in out-of-tree builds (bug#38816) 2065316749 Make comint-tests more robust (bug#38813)
-rw-r--r--test/lisp/calc/calc-tests.el1
-rw-r--r--test/lisp/comint-tests.el12
-rw-r--r--test/lisp/minibuffer-tests.el3
3 files changed, 9 insertions, 7 deletions
diff --git a/test/lisp/calc/calc-tests.el b/test/lisp/calc/calc-tests.el
index 33e6b14827f..f85f8da5434 100644
--- a/test/lisp/calc/calc-tests.el
+++ b/test/lisp/calc/calc-tests.el
@@ -29,6 +29,7 @@
29(require 'calc) 29(require 'calc)
30(require 'calc-ext) 30(require 'calc-ext)
31(require 'calc-units) 31(require 'calc-units)
32(require 'calc-forms)
32 33
33;; XXX The order in which calc libraries (in particular calc-units) 34;; XXX The order in which calc libraries (in particular calc-units)
34;; are loaded influences whether a calc integer in an expression 35;; are loaded influences whether a calc integer in an expression
diff --git a/test/lisp/comint-tests.el b/test/lisp/comint-tests.el
index c04134599f6..4c1c5cc5e20 100644
--- a/test/lisp/comint-tests.el
+++ b/test/lisp/comint-tests.el
@@ -64,10 +64,10 @@ alter normal password flow."
64 (with-temp-buffer 64 (with-temp-buffer
65 (make-comint-in-buffer "test-comint-password" (current-buffer) cat) 65 (make-comint-in-buffer "test-comint-password" (current-buffer) cat)
66 (let ((proc (get-buffer-process (current-buffer)))) 66 (let ((proc (get-buffer-process (current-buffer))))
67 (set-process-query-on-exit-flag proc nil)
67 (comint-send-string proc "Password: ") 68 (comint-send-string proc "Password: ")
68 (accept-process-output proc 0 1 t)
69 (comint-send-eof) 69 (comint-send-eof)
70 (accept-process-output proc 0 1 t) 70 (while (accept-process-output proc 0.1 nil t))
71 (should (string-equal (buffer-substring-no-properties (point-min) (point-max)) 71 (should (string-equal (buffer-substring-no-properties (point-min) (point-max))
72 "Password: PaSsWoRd123\n")) 72 "Password: PaSsWoRd123\n"))
73 (when (process-live-p proc) 73 (when (process-live-p proc)
@@ -87,10 +87,10 @@ flow. Hook function returns alternative password."
87 (with-temp-buffer 87 (with-temp-buffer
88 (make-comint-in-buffer "test-comint-password" (current-buffer) cat) 88 (make-comint-in-buffer "test-comint-password" (current-buffer) cat)
89 (let ((proc (get-buffer-process (current-buffer)))) 89 (let ((proc (get-buffer-process (current-buffer))))
90 (set-process-query-on-exit-flag proc nil)
90 (comint-send-string proc "Password: ") 91 (comint-send-string proc "Password: ")
91 (accept-process-output proc 0 1 t)
92 (comint-send-eof) 92 (comint-send-eof)
93 (accept-process-output proc 0 1 t) 93 (while (accept-process-output proc 0.1 nil t))
94 (should (string-equal (buffer-substring-no-properties (point-min) (point-max)) 94 (should (string-equal (buffer-substring-no-properties (point-min) (point-max))
95 "Password: MaGiC-PaSsWoRd789\n")) 95 "Password: MaGiC-PaSsWoRd789\n"))
96 (when (process-live-p proc) 96 (when (process-live-p proc)
@@ -110,10 +110,10 @@ password flow if it returns a nil value."
110 (with-temp-buffer 110 (with-temp-buffer
111 (make-comint-in-buffer "test-comint-password" (current-buffer) cat) 111 (make-comint-in-buffer "test-comint-password" (current-buffer) cat)
112 (let ((proc (get-buffer-process (current-buffer)))) 112 (let ((proc (get-buffer-process (current-buffer))))
113 (set-process-query-on-exit-flag proc nil)
113 (comint-send-string proc "Password: ") 114 (comint-send-string proc "Password: ")
114 (accept-process-output proc 0 1 t)
115 (comint-send-eof) 115 (comint-send-eof)
116 (accept-process-output proc 0 1 t) 116 (while (accept-process-output proc 0.1 nil t))
117 (should (string-equal (buffer-substring-no-properties (point-min) (point-max)) 117 (should (string-equal (buffer-substring-no-properties (point-min) (point-max))
118 "Password: PaSsWoRd456\n")) 118 "Password: PaSsWoRd456\n"))
119 (when (process-live-p proc) 119 (when (process-live-p proc)
diff --git a/test/lisp/minibuffer-tests.el b/test/lisp/minibuffer-tests.el
index 6b297244214..0605bad901a 100644
--- a/test/lisp/minibuffer-tests.el
+++ b/test/lisp/minibuffer-tests.el
@@ -82,7 +82,8 @@
82 82
83(ert-deftest completion-table-test-quoting () 83(ert-deftest completion-table-test-quoting ()
84 (let ((process-environment 84 (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)))
86 (pcase-dolist (`(,input ,output) 87 (pcase-dolist (`(,input ,output)
87 '( 88 '(
88 ;; Test that $ in files is properly $$ quoted. 89 ;; Test that $ in files is properly $$ quoted.