diff options
| author | Jim Porter | 2023-09-08 22:24:06 -0700 |
|---|---|---|
| committer | Jim Porter | 2023-09-08 22:24:06 -0700 |
| commit | 09840a8a2ff87487550fdeea5b91162056473587 (patch) | |
| tree | 50a8180055f99718f03fff0fe80d4fae255f1d9f | |
| parent | 1bf036bf3f07d00c8b26d2e57c03fda4c0724e9c (diff) | |
| download | emacs-09840a8a2ff87487550fdeea5b91162056473587.tar.gz emacs-09840a8a2ff87487550fdeea5b91162056473587.zip | |
; Fix last change
* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/sigpipe-exits-process): Make sure we have no *new*
processes, instead of making sure we have no processes at all.
| -rw-r--r-- | test/lisp/eshell/esh-proc-tests.el | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/test/lisp/eshell/esh-proc-tests.el b/test/lisp/eshell/esh-proc-tests.el index 9e349cc31b6..aaed8cabf22 100644 --- a/test/lisp/eshell/esh-proc-tests.el +++ b/test/lisp/eshell/esh-proc-tests.el | |||
| @@ -137,18 +137,19 @@ | |||
| 137 | (skip-unless (and (executable-find "sh") | 137 | (skip-unless (and (executable-find "sh") |
| 138 | (executable-find "echo") | 138 | (executable-find "echo") |
| 139 | (executable-find "sleep"))) | 139 | (executable-find "sleep"))) |
| 140 | (with-temp-eshell | 140 | (let ((starting-process-list (process-list))) |
| 141 | (eshell-match-command-output | 141 | (with-temp-eshell |
| 142 | ;; The first command is like `yes' but slower. This is to prevent | 142 | (eshell-match-command-output |
| 143 | ;; it from taxing Emacs's process filter too much and causing a | 143 | ;; The first command is like `yes' but slower. This is to prevent |
| 144 | ;; hang. Note that we use "|&" to connect the processes so that | 144 | ;; it from taxing Emacs's process filter too much and causing a |
| 145 | ;; Emacs doesn't create an extra pipe process for the first "sh" | 145 | ;; hang. Note that we use "|&" to connect the processes so that |
| 146 | ;; invocation. | 146 | ;; Emacs doesn't create an extra pipe process for the first "sh" |
| 147 | (concat "sh -c 'while true; do echo y; sleep 1; done' |& " | 147 | ;; invocation. |
| 148 | "sh -c 'read NAME; echo ${NAME}'") | 148 | (concat "sh -c 'while true; do echo y; sleep 1; done' |& " |
| 149 | "y\n") | 149 | "sh -c 'read NAME; echo ${NAME}'") |
| 150 | (eshell-wait-for-subprocess t) | 150 | "y\n") |
| 151 | (should (eq (process-list) nil)))) | 151 | (eshell-wait-for-subprocess t) |
| 152 | (should (equal (process-list) starting-process-list))))) | ||
| 152 | 153 | ||
| 153 | (ert-deftest esh-proc-test/pipeline-connection-type/no-pipeline () | 154 | (ert-deftest esh-proc-test/pipeline-connection-type/no-pipeline () |
| 154 | "Test that all streams are PTYs when a command is not in a pipeline." | 155 | "Test that all streams are PTYs when a command is not in a pipeline." |