Ignore whitespaces when comparing test results with expected output

In mingw, the test result may contain CRLF while the .exp files don't, or
the other way around.
This commit is contained in:
Mike Hommey 2012-04-10 15:29:18 +02:00 committed by Jason Evans
parent 3701367e4c
commit a8683fbaf9

View File

@ -205,7 +205,7 @@ check: tests
$(TEST_LIBRARY_PATH) $${t} @abs_srcroot@ @abs_objroot@ \ $(TEST_LIBRARY_PATH) $${t} @abs_srcroot@ @abs_objroot@ \
> @objroot@$${t}.out 2>&1; \ > @objroot@$${t}.out 2>&1; \
if test -e "@srcroot@$${t}.exp"; then \ if test -e "@srcroot@$${t}.exp"; then \
diff -u @srcroot@$${t}.exp \ diff -w -u @srcroot@$${t}.exp \
@objroot@$${t}.out >/dev/null 2>&1; \ @objroot@$${t}.out >/dev/null 2>&1; \
fail=$$?; \ fail=$$?; \
if test "$${fail}" -eq "1" ; then \ if test "$${fail}" -eq "1" ; then \