1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

MINGW: in ports test, use binary mode for line counter tests

The line counter tests presumes newline-only line endings.  Use binary
mode to avoid CRLF endings.

* test-suite/tests/ports.test ("line endings"): write test file in binary
    mode
This commit is contained in:
Michael Gran 2023-07-04 09:42:46 -07:00
parent 1838ef8ef6
commit ba4939e31f

View file

@ -1160,7 +1160,9 @@
(define (input-port-list text)
;; Create a text file some of the ports will use.
(let ((out-port (open-output-file port-loop-temp)))
;; We use binary mode to avoid having to redesign this test for CRLF
;; line ending systems.
(let ((out-port (open-output-file port-loop-temp #:binary #t)))
(display text out-port)
(close-port out-port))