Skip to content

Commit

Permalink
compiletest: explain that UI tests are expected not to compile by def…
Browse files Browse the repository at this point in the history
…ault
  • Loading branch information
clubby789 committed Dec 3, 2024
1 parent 490b2cc commit ab38efe
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,13 @@ impl<'test> TestCx<'test> {
}
} else {
if proc_res.status.success() {
self.fatal_proc_rec(
&format!("{} test compiled successfully!", self.config.mode)[..],
proc_res,
);
{
self.error(&format!("{} test did not emit an error", self.config.mode));
if self.config.mode == crate::common::Mode::Ui {
println!("note: by default, ui tests are expected not to compile");
}
proc_res.fatal(None, || ());
};
}

if !self.props.dont_check_failure_status {
Expand Down

0 comments on commit ab38efe

Please sign in to comment.