summaryrefslogtreecommitdiff
path: root/test/src/process-tests.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-12-31 16:50:19 +0200
committerEli Zaretskii <eliz@gnu.org>2020-12-31 16:50:19 +0200
commit03608312aee9990fb856ea5f865e3e918050ad21 (patch)
tree782a5d9fafd220961a84e2ec284f2523d6a99b09 /test/src/process-tests.el
parent1b449af5a1c0585da5b1d30c17a1d4b2d8954ddf (diff)
downloademacs-03608312aee9990fb856ea5f865e3e918050ad21.tar.gz
emacs-03608312aee9990fb856ea5f865e3e918050ad21.tar.bz2
emacs-03608312aee9990fb856ea5f865e3e918050ad21.zip
Fix process-tests on MS-Windows
* test/src/process-tests.el (process-tests--fd-setsize-test): On MS-Windows start the pipe processes in the "stopped" condition.
Diffstat (limited to 'test/src/process-tests.el')
-rw-r--r--test/src/process-tests.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/process-tests.el b/test/src/process-tests.el
index 24b09c56e2c..8d4516ff3b6 100644
--- a/test/src/process-tests.el
+++ b/test/src/process-tests.el
@@ -493,6 +493,13 @@ FD_SETSIZE."
for ,process = (process-tests--ignore-EMFILE
(make-pipe-process
:name (format "pipe %d" i)
+ ;; Prevent delete-process from
+ ;; trying to read from pipe
+ ;; processes that didn't exit
+ ;; yet, because no one is
+ ;; writing to those pipes, and
+ ;; the read will stall.
+ :stop (eq system-type 'windows-nt)
:buffer ,buffer
:coding 'no-conversion
:noquery t))