diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2024-12-03 18:43:22 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2024-12-03 18:43:22 +0000 |
| commit | ab38efefae34f9d69f92f09376eb40482b871de1 (patch) | |
| tree | 4b37384d94414692aeb49f7022ddc2ab3de256a9 | |
| parent | 490b2cc09860dd62a7595bb07364d71c12ce4e60 (diff) | |
| download | rust-ab38efefae34f9d69f92f09376eb40482b871de1.tar.gz rust-ab38efefae34f9d69f92f09376eb40482b871de1.zip | |
compiletest: explain that UI tests are expected not to compile by default
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 7be9e2f2d57..84269fd44a1 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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 { |
