aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/simple-tests.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lisp/simple-tests.el b/test/lisp/simple-tests.el
index 8c477165a4f..b23b0804575 100644
--- a/test/lisp/simple-tests.el
+++ b/test/lisp/simple-tests.el
@@ -715,7 +715,7 @@ See Bug#21722."
715;;; Tests for shell-command-dont-erase-buffer 715;;; Tests for shell-command-dont-erase-buffer
716 716
717(defmacro with-shell-command-dont-erase-buffer (str output-buffer-is-current &rest body) 717(defmacro with-shell-command-dont-erase-buffer (str output-buffer-is-current &rest body)
718 (declare (debug (form &body)) (indent 2)) 718 (declare (debug (sexp form body)) (indent 2))
719 (let ((expected (make-symbol "expected")) 719 (let ((expected (make-symbol "expected"))
720 (command (make-symbol "command")) 720 (command (make-symbol "command"))
721 (caller-buf (make-symbol "caller-buf")) 721 (caller-buf (make-symbol "caller-buf"))
@@ -724,7 +724,7 @@ See Bug#21722."
724 (,output-buf (if ,output-buffer-is-current ,caller-buf 724 (,output-buf (if ,output-buffer-is-current ,caller-buf
725 (generate-new-buffer "output-buf"))) 725 (generate-new-buffer "output-buf")))
726 (emacs (expand-file-name invocation-name invocation-directory)) 726 (emacs (expand-file-name invocation-name invocation-directory))
727 (,command (format "%s -Q --batch --eval \"(princ \\\"%s\\\")\"" 727 (,command (format "%s -Q --batch --eval '(princ %S)'"
728 emacs ,str)) 728 emacs ,str))
729 (inhibit-message t)) 729 (inhibit-message t))
730 (unwind-protect 730 (unwind-protect
@@ -745,7 +745,7 @@ See Bug#21722."
745 745
746(ert-deftest simple-tests-shell-command-39067 () 746(ert-deftest simple-tests-shell-command-39067 ()
747 "The output buffer is erased or not according to `shell-command-dont-erase-buffer'." 747 "The output buffer is erased or not according to `shell-command-dont-erase-buffer'."
748 (let ((str "foo\n")) 748 (let ((str "foo\\n"))
749 (dolist (output-current '(t nil)) 749 (dolist (output-current '(t nil))
750 (with-shell-command-dont-erase-buffer str output-current 750 (with-shell-command-dont-erase-buffer str output-current
751 (let ((expected (cond ((eq shell-command-dont-erase-buffer 'erase) str) 751 (let ((expected (cond ((eq shell-command-dont-erase-buffer 'erase) str)
@@ -757,7 +757,7 @@ See Bug#21722."
757 757
758(ert-deftest simple-tests-shell-command-dont-erase-buffer () 758(ert-deftest simple-tests-shell-command-dont-erase-buffer ()
759 "The point is set at the expected position after execution of the command." 759 "The point is set at the expected position after execution of the command."
760 (let* ((str "foo\n") 760 (let* ((str "foo\\n")
761 (expected-point `((beg-last-out . ,(1+ (length str))) 761 (expected-point `((beg-last-out . ,(1+ (length str)))
762 (end-last-out . ,(1+ (* 2 (length str)))) 762 (end-last-out . ,(1+ (* 2 (length str))))
763 (save-point . 1)))) 763 (save-point . 1))))