Fix Eshell process tests to (hopefully) work on all platforms
* test/lisp/eshell/esh-proc-tests.el (esh-proc-test/kill-pipeline): Fix test (bug#54136).
This commit is contained in:
parent
fa2b60615b
commit
73e1be36e5
1 changed files with 5 additions and 4 deletions
|
@ -57,10 +57,11 @@ prompt. See bug#54136."
|
|||
(let ((output-start (eshell-beginning-of-output)))
|
||||
(eshell-kill-process)
|
||||
(eshell-wait-for-subprocess t)
|
||||
(should (equal (buffer-substring-no-properties
|
||||
output-start (eshell-end-of-output))
|
||||
;; "interrupt\n" is for MS-Windows.
|
||||
(or "interrupt\n" "killed\n"))))))
|
||||
(should (string-match-p
|
||||
;; "interrupt\n" is for MS-Windows.
|
||||
(rx (or "interrupt\n" "killed\n"))
|
||||
(buffer-substring-no-properties
|
||||
output-start (eshell-end-of-output)))))))
|
||||
|
||||
(ert-deftest esh-proc-test/kill-pipeline-head ()
|
||||
"Test that killing the first process in a pipeline doesn't
|
||||
|
|
Loading…
Add table
Reference in a new issue