]> git.eshelyaron.com Git - emacs.git/commitdiff
; Minor editorial fixes to some Eshell tests
authorJim Porter <jporterbugs@gmail.com>
Thu, 13 Jun 2024 19:22:01 +0000 (12:22 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Jun 2024 17:21:12 +0000 (19:21 +0200)
* 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

index 90bbb4fa14e9838a636d4636f1c20534236e4614..bb78f1786ddf36cd7d11d215fdcda6b3bdf529b2 100644 (file)
@@ -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> #<buffer %s>" 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> #<buffer %s>" bufname))
-     (kill-process (eshell-head-process)))
-    (should (equal (buffer-string) ""))))
-
 \f
 ;; 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)