aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/process-tests.el
diff options
context:
space:
mode:
authorPaul Eggert2019-01-15 10:18:45 -0800
committerPaul Eggert2019-01-15 10:21:09 -0800
commit9fc02ff5ea95c31a8d81eabb5634aa135fcd8786 (patch)
treec6a8b2db65efc5b51a184658a0672f89b625015e /test/src/process-tests.el
parent223e7b87872d4a010ae1c9a6f09a9c15aee46692 (diff)
downloademacs-9fc02ff5ea95c31a8d81eabb5634aa135fcd8786.tar.gz
emacs-9fc02ff5ea95c31a8d81eabb5634aa135fcd8786.zip
Fix accept-process-output/process-live-p confusion
* doc/lispref/processes.texi (Accepting Output): Document the issue. * lisp/net/tramp-adb.el (tramp-adb-parse-device-names): * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names): * lisp/net/tramp-smb.el (tramp-smb-wait-for-output): * lisp/net/tramp.el (tramp-interrupt-process): * test/src/process-tests.el (make-process/mix-stderr): Fix code that uses accept-process-output and process-live-p. Add FIXME comments as necessary. * lisp/net/tramp-sudoedit.el (tramp-sudoedit-action-sudo): * lisp/net/tramp.el (tramp-action-out-of-band): Add FIXME comments as necessary.
Diffstat (limited to 'test/src/process-tests.el')
-rw-r--r--test/src/process-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/process-tests.el b/test/src/process-tests.el
index 514bd04da4e..5dbf441e8c2 100644
--- a/test/src/process-tests.el
+++ b/test/src/process-tests.el
@@ -207,8 +207,8 @@
207 :sentinel #'ignore 207 :sentinel #'ignore
208 :noquery t 208 :noquery t
209 :connection-type 'pipe))) 209 :connection-type 'pipe)))
210 (while (process-live-p process) 210 (while (or (accept-process-output process)
211 (accept-process-output process)) 211 (process-live-p process)))
212 (should (eq (process-status process) 'exit)) 212 (should (eq (process-status process) 'exit))
213 (should (eq (process-exit-status process) 0)) 213 (should (eq (process-exit-status process) 0))
214 (should (process-tests--mixable (string-to-list (buffer-string)) 214 (should (process-tests--mixable (string-to-list (buffer-string))