]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix recently added eshell test
authorStefan Kangas <stefankangas@gmail.com>
Mon, 10 Jun 2024 20:17:35 +0000 (22:17 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Jun 2024 09:27:12 +0000 (11:27 +0200)
* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test/empty-background-command): Fix failing test.

(cherry picked from commit 37a715c609a10493d981fd4badca3d9c7dd872f8)

test/lisp/eshell/esh-cmd-tests.el

index 865a1aadcd4e845600d8a0d6046074e424ea6531..166a0ba1fff0bfc458465e8972685be24da77de4 100644 (file)
@@ -507,13 +507,14 @@ NAME is the name of the test case."
 
 (ert-deftest esh-cmd-test/empty-background-command ()
   "Test that Eshell reports an error when trying to background a nil command."
-  (with-temp-eshell
-    (eshell-match-command-output "echo hi & &"
-                                 "\\`Empty command before `&'\n")
-    ;; Make sure the next Eshell prompt has the original input so the
-    ;; user can fix it.
-    (should (equal (buffer-substring eshell-last-output-end (point))
-                   "echo hi & &"))))
+  (let ((text-quoting-style 'grave))
+    (with-temp-eshell
+     (eshell-match-command-output "echo hi & &"
+                                  "\\`Empty command before `&'\n")
+     ;; Make sure the next Eshell prompt has the original input so the
+     ;; user can fix it.
+     (should (equal (buffer-substring eshell-last-output-end (point))
+                    "echo hi & &")))))
 
 (ert-deftest esh-cmd-test/throw ()
   "Test that calling `throw' as an Eshell command unwinds everything properly."