* tests/test-parse-duration.sh: Transform CRLF to LF in the output,
before analyzing the output.
2023-04-20 Bruno Haible <bruno@clisp.org>
+ parse-duration tests: Fix test failure on mingw.
+ * tests/test-parse-duration.sh: Transform CRLF to LF in the output,
+ before analyzing the output.
+
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.
exec 3< "${tmpf}"
while read line <&3
do
- v=`${CHECKER} ${exe} "${line}"` || { ls -l "${tmpf}"; die "Failed: ${exe} '${line}'"; }
+ v=`${CHECKER} ${exe} "${line}" | LC_ALL=C tr -d '\r'` \
+ || { ls -l "${tmpf}"; die "Failed: ${exe} '${line}'"; }
test $v -eq 38898367 || die $v is not 38898367
done
exec 3>&-