diff options
| author | Eli Zaretskii | 2024-06-15 22:20:56 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-06-15 22:20:56 +0300 |
| commit | 2c201bbba5c43328979bf139330684cacfa074f3 (patch) | |
| tree | 9ef387aebbe71487117e98f50895ce934f0287da /test/lisp/eshell | |
| parent | 13c4fc3dc72d87af89d92f40808cf4f1285eddab (diff) | |
| download | emacs-2c201bbba5c43328979bf139330684cacfa074f3.tar.gz emacs-2c201bbba5c43328979bf139330684cacfa074f3.zip | |
Fix em-extpipe-tests on MS-Windows
* test/lisp/eshell/em-extpipe-tests.el (em-extpipe-test-14): Fix
test on MS-Windows (bug#71446).
Diffstat (limited to 'test/lisp/eshell')
| -rw-r--r-- | test/lisp/eshell/em-extpipe-tests.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lisp/eshell/em-extpipe-tests.el b/test/lisp/eshell/em-extpipe-tests.el index 610e3d41524..c5f1301cd3b 100644 --- a/test/lisp/eshell/em-extpipe-tests.el +++ b/test/lisp/eshell/em-extpipe-tests.el | |||
| @@ -181,7 +181,11 @@ | |||
| 181 | (skip-unless (executable-find "tac")) | 181 | (skip-unless (executable-find "tac")) |
| 182 | (should-parse '(eshell-named-command "sh" (list "-c" "tac <temp"))) | 182 | (should-parse '(eshell-named-command "sh" (list "-c" "tac <temp"))) |
| 183 | (with-substitute-for-temp | 183 | (with-substitute-for-temp |
| 184 | (with-temp-buffer (insert "bar\nbaz\n") (write-file temp)) | 184 | (with-temp-buffer |
| 185 | (insert "bar\nbaz\n") | ||
| 186 | ;; Some versions of 'tac' on MS-Windows need Unix EOLs... | ||
| 187 | (let ((coding-system-for-write 'unix)) | ||
| 188 | (write-file temp))) | ||
| 185 | (eshell-match-command-output input "baz\nbar"))) | 189 | (eshell-match-command-output input "baz\nbar"))) |
| 186 | 190 | ||
| 187 | (em-extpipe-tests--deftest em-extpipe-test-15 "echo \"bar\" *| cat" | 191 | (em-extpipe-tests--deftest em-extpipe-test-15 "echo \"bar\" *| cat" |