mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
compiletest: explain that UI tests are expected not to compile by default
This commit is contained in:
parent
490b2cc098
commit
ab38efefae
@ -350,10 +350,13 @@ impl<'test> TestCx<'test> {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if proc_res.status.success() {
|
if proc_res.status.success() {
|
||||||
self.fatal_proc_rec(
|
{
|
||||||
&format!("{} test compiled successfully!", self.config.mode)[..],
|
self.error(&format!("{} test did not emit an error", self.config.mode));
|
||||||
proc_res,
|
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 {
|
if !self.props.dont_check_failure_status {
|
||||||
|
Loading…
Reference in New Issue
Block a user