[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 690cf6b 2/2: Increase probability that a process test succeeds.
From: |
Philipp Stephani |
Subject: |
master 690cf6b 2/2: Increase probability that a process test succeeds. |
Date: |
Sun, 10 Jan 2021 04:15:25 -0500 (EST) |
branch: master
commit 690cf6b8d8b8827f046bc1e24b2e556afeff976c
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>
Increase probability that a process test succeeds.
* test/src/process-tests.el
(process-tests/fd-setsize-no-crash/make-process): Work around
potential Emacs bug.
---
test/src/process-tests.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test/src/process-tests.el b/test/src/process-tests.el
index ca98f54..921bcd5 100644
--- a/test/src/process-tests.el
+++ b/test/src/process-tests.el
@@ -565,6 +565,11 @@ FD_SETSIZE file descriptors (Bug#24325)."
(should (memq (process-status process) '(run exit)))
(when (process-live-p process)
(process-send-eof process))
+ ;; FIXME: This `sleep-for' shouldn't be needed. It
+ ;; indicates a bug in Emacs; perhaps SIGCHLD is
+ ;; received in parallel with `accept-process-output',
+ ;; causing the latter to hang.
+ (sleep-for 0.1)
(while (accept-process-output process))
(should (eq (process-status process) 'exit))
;; If there's an error between fork and exec, Emacs