aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/eshell/eshell-tests.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lisp/eshell/eshell-tests.el b/test/lisp/eshell/eshell-tests.el
index e5aeee5123e..50a748cd56e 100644
--- a/test/lisp/eshell/eshell-tests.el
+++ b/test/lisp/eshell/eshell-tests.el
@@ -150,6 +150,14 @@ This test uses a pipeline for the command."
150 (eshell-command "echo hi" 'eshell-command-output) 150 (eshell-command "echo hi" 'eshell-command-output)
151 (should (equal eshell-command-output "hi"))) 151 (should (equal eshell-command-output "hi")))
152 152
153(ert-deftest eshell-test/eshell-command/output-dev-null ()
154 "Test that the `eshell-command' function handles /dev/null properly."
155 (ert-with-temp-directory eshell-directory-name
156 (let ((eshell-history-file-name nil))
157 (with-temp-buffer
158 (eshell-command "echo hi" "/dev/null")
159 (should (equal (buffer-string) ""))))))
160
153(ert-deftest eshell-test/command-running-p () 161(ert-deftest eshell-test/command-running-p ()
154 "Modeline should show no command running" 162 "Modeline should show no command running"
155 (with-temp-eshell 163 (with-temp-eshell