]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix incompatibility with TCC in test for bug#18745
authorJuanma Barranquero <lekktu@gmail.com>
Sat, 31 Oct 2015 23:22:13 +0000 (00:22 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 1 Nov 2015 18:14:27 +0000 (19:14 +0100)
* test/automated/process-tests.el (process-test-quoted-batfile):
Remove spaces unrelated to the bug being tested.

test/automated/process-tests.el

index 1dab615bed0e7e211ad067a7d21eb23306daf8f1..58a2de7451d4870ca5a7139588adaf9521e627df 100644 (file)
             ;; 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 ()