From: Stefan Kangas Date: Mon, 10 Jun 2024 20:17:35 +0000 (+0200) Subject: Fix recently added eshell test X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=42bc9bab68910d6a342f75b3c10864bb8dccefd2;p=emacs.git Fix recently added eshell test * test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/empty-background-command): Fix failing test. (cherry picked from commit 37a715c609a10493d981fd4badca3d9c7dd872f8) --- diff --git a/test/lisp/eshell/esh-cmd-tests.el b/test/lisp/eshell/esh-cmd-tests.el index 865a1aadcd4..166a0ba1fff 100644 --- a/test/lisp/eshell/esh-cmd-tests.el +++ b/test/lisp/eshell/esh-cmd-tests.el @@ -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."