(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)
(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)
(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)