diff options
Diffstat (limited to 'test/lisp/comint-tests.el')
-rw-r--r-- | test/lisp/comint-tests.el | 12 |
1 files changed, 6 insertions, 6 deletions
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." (with-temp-buffer (make-comint-in-buffer "test-comint-password" (current-buffer) cat) (let ((proc (get-buffer-process (current-buffer)))) + (set-process-query-on-exit-flag proc nil) (comint-send-string proc "Password: ") - (accept-process-output proc 0 1 t) (comint-send-eof) - (accept-process-output proc 0 1 t) + (while (accept-process-output proc 0.1 nil t)) (should (string-equal (buffer-substring-no-properties (point-min) (point-max)) "Password: PaSsWoRd123\n")) (when (process-live-p proc) @@ -87,10 +87,10 @@ flow. Hook function returns alternative password." (with-temp-buffer (make-comint-in-buffer "test-comint-password" (current-buffer) cat) (let ((proc (get-buffer-process (current-buffer)))) + (set-process-query-on-exit-flag proc nil) (comint-send-string proc "Password: ") - (accept-process-output proc 0 1 t) (comint-send-eof) - (accept-process-output proc 0 1 t) + (while (accept-process-output proc 0.1 nil t)) (should (string-equal (buffer-substring-no-properties (point-min) (point-max)) "Password: MaGiC-PaSsWoRd789\n")) (when (process-live-p proc) @@ -110,10 +110,10 @@ password flow if it returns a nil value." (with-temp-buffer (make-comint-in-buffer "test-comint-password" (current-buffer) cat) (let ((proc (get-buffer-process (current-buffer)))) + (set-process-query-on-exit-flag proc nil) (comint-send-string proc "Password: ") - (accept-process-output proc 0 1 t) (comint-send-eof) - (accept-process-output proc 0 1 t) + (while (accept-process-output proc 0.1 nil t)) (should (string-equal (buffer-substring-no-properties (point-min) (point-max)) "Password: PaSsWoRd456\n")) (when (process-live-p proc) |