Better reporting of whitespace changes only
parent
1129b384b2
commit
925f23515d
|
@ -88,9 +88,11 @@ bool files_equal(const string& expected, const string& actual, bool skipheader)
|
||||||
string actual_contents = file_contents(actual, skipheader);
|
string actual_contents = file_contents(actual, skipheader);
|
||||||
bool equal = actual_contents == expected_contents;
|
bool equal = actual_contents == expected_contents;
|
||||||
if (!equal) {
|
if (!equal) {
|
||||||
|
cerr << "<<< DIFF OUTPUT (if none, white-space differences only):\n";
|
||||||
stringstream command;
|
stringstream command;
|
||||||
command << "diff " << expected << " " << actual << endl;
|
command << "diff --ignore-all-space " << expected << " " << actual << endl;
|
||||||
system(command.str().c_str());
|
system(command.str().c_str());
|
||||||
|
cerr << ">>>\n";
|
||||||
}
|
}
|
||||||
return equal;
|
return equal;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue