[PATCH] Ignore whitespaces when comparing test results with expected output

Mike Hommey mh+jemalloc at glandium.org
Tue Apr 10 06:29:18 PDT 2012


From: Mike Hommey <mh at glandium.org>

In mingw, the test result may contain CRLF while the .exp files don't, or
the other way around.
---
 Makefile.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 821c063..7df4fc6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -205,7 +205,7 @@ check: tests
 			$(TEST_LIBRARY_PATH) $${t} @abs_srcroot@ @abs_objroot@ \
 			  > @objroot@$${t}.out 2>&1; \
 			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; \
 				fail=$$?; \
 				if test "$${fail}" -eq "1" ; then \
-- 
1.7.9.5




More information about the jemalloc-discuss mailing list