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).
This commit is contained in:
Eli Zaretskii 2024-06-15 22:20:56 +03:00
parent 13c4fc3dc7
commit 2c201bbba5

View file

@ -181,7 +181,11 @@
(skip-unless (executable-find "tac"))
(should-parse '(eshell-named-command "sh" (list "-c" "tac <temp")))
(with-substitute-for-temp
(with-temp-buffer (insert "bar\nbaz\n") (write-file temp))
(with-temp-buffer
(insert "bar\nbaz\n")
;; Some versions of 'tac' on MS-Windows need Unix EOLs...
(let ((coding-system-for-write 'unix))
(write-file temp)))
(eshell-match-command-output input "baz\nbar")))
(em-extpipe-tests--deftest em-extpipe-test-15 "echo \"bar\" *| cat"