From 925f23515d0103bbf01b8eef64703cb8f024abd1 Mon Sep 17 00:00:00 2001 From: dellaert Date: Sun, 25 May 2014 16:27:29 -0400 Subject: [PATCH] Better reporting of whitespace changes only --- wrap/utilities.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wrap/utilities.cpp b/wrap/utilities.cpp index 870ba3101..47f7d10a6 100644 --- a/wrap/utilities.cpp +++ b/wrap/utilities.cpp @@ -88,9 +88,11 @@ bool files_equal(const string& expected, const string& actual, bool skipheader) string actual_contents = file_contents(actual, skipheader); bool equal = actual_contents == expected_contents; if (!equal) { + cerr << "<<< DIFF OUTPUT (if none, white-space differences only):\n"; stringstream command; - command << "diff " << expected << " " << actual << endl; + command << "diff --ignore-all-space " << expected << " " << actual << endl; system(command.str().c_str()); + cerr << ">>>\n"; } return equal; }