]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix em-extpipe-tests on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sat, 15 Jun 2024 19:20:56 +0000 (22:20 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 17 Jun 2024 10:43:50 +0000 (12:43 +0200)
* test/lisp/eshell/em-extpipe-tests.el (em-extpipe-test-14): Fix
test on MS-Windows (bug#71446).

(cherry picked from commit 2c201bbba5c43328979bf139330684cacfa074f3)

test/lisp/eshell/em-extpipe-tests.el

index 610e3d4152482f4260d365b9d6bf850f91cee8af..c5f1301cd3bed6f8d6a7e0d32d0911e727c14b31 100644 (file)
   (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"