From e2ce2800cda9d711ea425699458e031c752edd0a Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Thu, 13 Jun 2024 12:22:01 -0700 Subject: [PATCH] ; Minor editorial fixes to some Eshell tests * test/lisp/eshell/esh-proc-tests.el (esh-proc-test/kill-process/redirect-message): Move next to its sibling tests. (esh-proc-test/remote/remote-path): Rename from 'esh-var-test/...'. (cherry picked from commit 4973801c198a4292992b7df0488b3d467c99571e) --- test/lisp/eshell/esh-proc-tests.el | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/lisp/eshell/esh-proc-tests.el b/test/lisp/eshell/esh-proc-tests.el index 90bbb4fa14e..bb78f1786dd 100644 --- a/test/lisp/eshell/esh-proc-tests.el +++ b/test/lisp/eshell/esh-proc-tests.el @@ -271,6 +271,15 @@ prompt. See bug#54136." (eshell-wait-for-subprocess) (should (eshell-match-output "\\[sh\\(\\.exe\\)?\\] [[:digit:]]+\n")))) +(ert-deftest esh-proc-test/kill-process/redirect-message () + "Test that killing a process with a redirected stderr omits the exit status." + (skip-unless (executable-find "sleep")) + (eshell-with-temp-buffer bufname "" + (with-temp-eshell + (eshell-insert-command (format "sleep 100 2> #" bufname)) + (kill-process (eshell-head-process))) + (should (equal (buffer-string) "")))) + (ert-deftest esh-proc-test/kill-pipeline () "Test that killing a pipeline of processes only emits a single prompt. See bug#54136." @@ -310,19 +319,10 @@ write the exit status to the pipe. See bug#54136." output-start (eshell-end-of-output)) ""))))) -(ert-deftest esh-proc-test/kill-process/redirect-message () - "Test that killing a process with a redirected stderr omits the exit status." - (skip-unless (executable-find "sleep")) - (eshell-with-temp-buffer bufname "" - (with-temp-eshell - (eshell-insert-command (format "sleep 100 2> #" bufname)) - (kill-process (eshell-head-process))) - (should (equal (buffer-string) "")))) - ;; Remote processes -(ert-deftest esh-var-test/remote/remote-path () +(ert-deftest esh-proc-test/remote/remote-path () "Ensure that setting the remote PATH in Eshell doesn't interfere with Tramp. See bug#65551." (skip-unless (and (eshell-tests-remote-accessible-p) -- 2.39.2