@@ -64,10 +64,10 @@ alter normal password flow."
64
64
(with-temp-buffer
65
65
(make-comint-in-buffer " test-comint-password" (current-buffer ) cat)
66
66
(let ((proc (get-buffer-process (current-buffer ))))
67
+ (set-process-query-on-exit-flag proc nil )
67
68
(comint-send-string proc " Password: " )
68
- (accept-process-output proc 0 1 t )
69
69
(comint-send-eof )
70
- (accept-process-output proc 0 1 t )
70
+ (while ( accept-process-output proc 0.1 nil t ) )
71
71
(should (string-equal (buffer-substring-no-properties (point-min ) (point-max ))
72
72
" Password: PaSsWoRd123\n " ))
73
73
(when (process-live-p proc)
@@ -87,10 +87,10 @@ flow. Hook function returns alternative password."
87
87
(with-temp-buffer
88
88
(make-comint-in-buffer " test-comint-password" (current-buffer ) cat)
89
89
(let ((proc (get-buffer-process (current-buffer ))))
90
+ (set-process-query-on-exit-flag proc nil )
90
91
(comint-send-string proc " Password: " )
91
- (accept-process-output proc 0 1 t )
92
92
(comint-send-eof )
93
- (accept-process-output proc 0 1 t )
93
+ (while ( accept-process-output proc 0.1 nil t ) )
94
94
(should (string-equal (buffer-substring-no-properties (point-min ) (point-max ))
95
95
" Password: MaGiC-PaSsWoRd789\n " ))
96
96
(when (process-live-p proc)
@@ -110,10 +110,10 @@ password flow if it returns a nil value."
110
110
(with-temp-buffer
111
111
(make-comint-in-buffer " test-comint-password" (current-buffer ) cat)
112
112
(let ((proc (get-buffer-process (current-buffer ))))
113
+ (set-process-query-on-exit-flag proc nil )
113
114
(comint-send-string proc " Password: " )
114
- (accept-process-output proc 0 1 t )
115
115
(comint-send-eof )
116
- (accept-process-output proc 0 1 t )
116
+ (while ( accept-process-output proc 0.1 nil t ) )
117
117
(should (string-equal (buffer-substring-no-properties (point-min ) (point-max ))
118
118
" Password: PaSsWoRd456\n " ))
119
119
(when (process-live-p proc)
0 commit comments