diff options
| author | Juanma Barranquero | 2015-11-01 00:22:13 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2015-11-01 19:14:27 +0100 |
| commit | 3a769e173ebaaff768497dae9c430ac03aedeb94 (patch) | |
| tree | a40f9d5b2dbb6b856ef06ad2df0f3018deceb61a | |
| parent | bf9e3e7711c6256febd443765afe006bfa6dcf5f (diff) | |
| download | emacs-3a769e173ebaaff768497dae9c430ac03aedeb94.tar.gz emacs-3a769e173ebaaff768497dae9c430ac03aedeb94.zip | |
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.
| -rw-r--r-- | test/automated/process-tests.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/automated/process-tests.el b/test/automated/process-tests.el index 1dab615bed0..58a2de7451d 100644 --- a/test/automated/process-tests.el +++ b/test/automated/process-tests.el | |||
| @@ -61,15 +61,15 @@ | |||
| 61 | ;; to force quoting. | 61 | ;; to force quoting. |
| 62 | (setq batfile (make-temp-file "echo args" nil ".bat")) | 62 | (setq batfile (make-temp-file "echo args" nil ".bat")) |
| 63 | (with-temp-file batfile | 63 | (with-temp-file batfile |
| 64 | (insert "@echo arg1 = %1, arg2 = %2\n")) | 64 | (insert "@echo arg1=%1, arg2=%2\n")) |
| 65 | (with-temp-buffer | 65 | (with-temp-buffer |
| 66 | (call-process batfile nil '(t t) t "x &y") | 66 | (call-process batfile nil '(t t) t "x &y") |
| 67 | (should (string= (buffer-string) "arg1 = \"x &y\", arg2 = \n"))) | 67 | (should (string= (buffer-string) "arg1=\"x &y\", arg2=\n"))) |
| 68 | (with-temp-buffer | 68 | (with-temp-buffer |
| 69 | (call-process-shell-command | 69 | (call-process-shell-command |
| 70 | (mapconcat #'shell-quote-argument (list batfile "x &y") " ") | 70 | (mapconcat #'shell-quote-argument (list batfile "x &y") " ") |
| 71 | nil '(t t) t) | 71 | nil '(t t) t) |
| 72 | (should (string= (buffer-string) "arg1 = \"x &y\", arg2 = \n")))) | 72 | (should (string= (buffer-string) "arg1=\"x &y\", arg2=\n")))) |
| 73 | (when batfile (delete-file batfile)))))) | 73 | (when batfile (delete-file batfile)))))) |
| 74 | 74 | ||
| 75 | (ert-deftest process-test-stderr-buffer () | 75 | (ert-deftest process-test-stderr-buffer () |