Skip to content

Commit

Permalink
Fix incompatibility with TCC in test for bug#18745
Browse files Browse the repository at this point in the history
* test/automated/process-tests.el (process-test-quoted-batfile):
Remove spaces unrelated to the bug being tested.
  • Loading branch information
lektu committed Nov 1, 2015
1 parent bf9e3e7 commit 3a769e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/automated/process-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
(with-temp-buffer
(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")))
(with-temp-buffer
(call-process-shell-command
(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 ()
Expand Down

0 comments on commit 3a769e1

Please sign in to comment.