Better reporting of whitespace changes only

release/4.3a0
dellaert 2014-05-25 16:27:29 -04:00
parent 1129b384b2
commit 925f23515d
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}