-
Notifications
You must be signed in to change notification settings - Fork 183
Open
Description
'make all' finishes successfully on MinGW, but 'make check' fails on all tests that have 'golden.log' reference -- MinGW executable outputs CRLF for end-of-line and golden.out uses LF.
The following patch rectifies the problem:
diff --git a/config/test.sh.in b/config/test.sh.in
index ac5be7aa3..397279964 100644
--- a/config/test.sh.in
+++ b/config/test.sh.in
@@ -68,9 +68,9 @@ result=$?
# no golden -> return exit status
if test ! -e "${GOLDEN}" ; then exit $result ; fi
-cat run.log | grep -v "stopped by user" | \
+cat run.log | grep -v "stopped by user" | sed 's/\r$//' | \
awk '{if($0!="") print $0}' > run_trimmed.log
-cat ${GOLDEN} | grep -v "stopped by user" | \
+cat ${GOLDEN} | grep -v "stopped by user" | sed 's/\r$//' | \
awk '{if($0!="") print $0}' > ./expected_trimmed.log
Metadata
Metadata
Assignees
Labels
No labels