Commit 3a769e17 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

Fix incompatibility with TCC in test for bug#18745

* test/automated/process-tests.el (process-test-quoted-batfile):
Remove spaces unrelated to the bug being tested.
parent bf9e3e77
......@@ -61,15 +61,15 @@
;; to force quoting.
(setq batfile (make-temp-file "echo args" nil ".bat"))
(with-temp-file batfile
(insert "@echo arg1 = %1, arg2 = %2\n"))
(insert "@echo arg1=%1, arg2=%2\n"))
(call-process batfile nil '(t t) t "x &y")
(should (string= (buffer-string) "arg1 = \"x &y\", arg2 = \n")))
(should (string= (buffer-string) "arg1=\"x &y\", arg2=\n")))
(mapconcat #'shell-quote-argument (list batfile "x &y") " ")
nil '(t t) t)
(should (string= (buffer-string) "arg1 = \"x &y\", arg2 = \n"))))
(should (string= (buffer-string) "arg1=\"x &y\", arg2=\n"))))
(when batfile (delete-file batfile))))))
(ert-deftest process-test-stderr-buffer ()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment