Make a process tests a bit more robust.
* test/src/process-tests.el (process-tests/fd-setsize-no-crash/make-process): Allow for processes to fail before 'exec'.
This commit is contained in:
parent
37e3a6eb31
commit
57e872ac75
1 changed files with 5 additions and 2 deletions
|
@ -560,8 +560,11 @@ FD_SETSIZE file descriptors (Bug#24325)."
|
|||
;; We should have managed to start at least one process.
|
||||
(should processes)
|
||||
(dolist (process processes)
|
||||
(should (process-live-p process))
|
||||
(process-send-eof process)
|
||||
;; The process now should either be running, or have
|
||||
;; already failed before `exec'.
|
||||
(should (memq (process-status process) '(run exit)))
|
||||
(when (process-live-p process)
|
||||
(process-send-eof process))
|
||||
(while (accept-process-output process))
|
||||
(should (eq (process-status process) 'exit))
|
||||
;; If there's an error between fork and exec, Emacs
|
||||
|
|
Loading…
Add table
Reference in a new issue