From 9cc5e656ca36614ebb8703b8298f31ee02deab43 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 20 Apr 2023 18:39:33 +0200 Subject: dfa tests: Fix test failure on mingw. * tests/test-dfa-invalid-char-class.sh: Transform CRLF to LF in the output, before comparing with the expected output. --- ChangeLog | 6 ++++++ tests/test-dfa-invalid-char-class.sh | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 485ed10025..8222100dfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-04-20 Bruno Haible + + dfa tests: Fix test failure on mingw. + * tests/test-dfa-invalid-char-class.sh: Transform CRLF to LF in the + output, before comparing with the expected output. + 2023-04-20 Bruno Haible Fix uses of libwinpthread on mingw 10. diff --git a/tests/test-dfa-invalid-char-class.sh b/tests/test-dfa-invalid-char-class.sh index 1428d7966a..b9b18980b6 100755 --- a/tests/test-dfa-invalid-char-class.sh +++ b/tests/test-dfa-invalid-char-class.sh @@ -24,7 +24,8 @@ path_prepend_ . fail=0 echo 'dfaerror: invalid character class' > exp -LC_ALL=C ${CHECKER} test-dfa-match-aux '[[:foo:]]' a > out 2>&1 +LC_ALL=C ${CHECKER} test-dfa-match-aux '[[:foo:]]' a > tmp 2>&1 +LC_ALL=C tr -d '\r' < tmp > out compare exp out || fail=1 Exit $fail -- cgit v1.2.1