mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix a potential unit test breakage on GNU/Linux.
* test/src/process-tests.el (process-tests/fd-setsize-no-crash/make-process): Allow special exit codes that can happen if terminal setup fails in the child process.
This commit is contained in:
parent
ab5f550bd9
commit
f43f1e32e9
1 changed files with 8 additions and 1 deletions
|
|
@ -525,7 +525,14 @@ FD_SETSIZE file descriptors (Bug#24325)."
|
|||
(dolist (process processes)
|
||||
(while (accept-process-output process))
|
||||
(should (eq (process-status process) 'exit))
|
||||
(should (eql (process-exit-status process) 0))))))))))
|
||||
;; If there's an error between fork and exec, Emacs
|
||||
;; will use exit statuses between 125 and 127, see
|
||||
;; process.h. This can happen if the child process
|
||||
;; tries to set up terminal device but fails due to
|
||||
;; file number limits. We don't treat this as an
|
||||
;; error.
|
||||
(should (memql (process-exit-status process)
|
||||
'(0 125 126 127)))))))))))
|
||||
|
||||
(ert-deftest process-tests/fd-setsize-no-crash/make-pipe-process ()
|
||||
"Check that Emacs doesn't crash when trying to use more than
|
||||
|
|
|
|||
Loading…
Reference in a new issue