make pretty source comparison check be fatal (fixes #52255)
This commit is contained in:
parent
ce45cbb053
commit
f0b1a781ac
1 changed files with 3 additions and 4 deletions
|
@ -519,9 +519,8 @@ impl<'test> TestCx<'test> {
|
|||
|
||||
fn compare_source(&self, expected: &str, actual: &str) {
|
||||
if expected != actual {
|
||||
self.error("pretty-printed source does not match expected source");
|
||||
println!(
|
||||
"\n\
|
||||
self.fatal(&format!(
|
||||
"pretty-printed source does not match expected source\n\
|
||||
expected:\n\
|
||||
------------------------------------------\n\
|
||||
{}\n\
|
||||
|
@ -531,7 +530,7 @@ impl<'test> TestCx<'test> {
|
|||
{}\n\
|
||||
------------------------------------------\n\
|
||||
\n",
|
||||
expected, actual
|
||||
expected, actual)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue