]> Savannah Git Hosting - gnulib.git/commitdiff
dfa tests: Fix test failure on mingw.
authorBruno Haible <bruno@clisp.org>
Thu, 20 Apr 2023 16:39:33 +0000 (18:39 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 20 Apr 2023 16:39:33 +0000 (18:39 +0200)
* tests/test-dfa-invalid-char-class.sh: Transform CRLF to LF in the
output, before comparing with the expected output.

ChangeLog
tests/test-dfa-invalid-char-class.sh

index 485ed10025ce7a2cac32d9e23e868fe65c2b0a16..8222100dfd7d18017ea6898a7f83fe5c685bbd62 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-04-20  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        Fix uses of libwinpthread on mingw 10.
index 1428d7966ad0fa8c7ad775810299a68a3589fff1..b9b18980b60e3dfd815efba836eef201ea286358 100755 (executable)
@@ -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