Check diagnostic output in incremental cpass and rpass revisions

This allows warnings to be annotated, and verifies that no unexpected warnings
occur.
This commit is contained in:
Zalathar
2026-04-03 15:34:22 +11:00
parent 8565c4a5de
commit 316fcbd217
@@ -1,5 +1,4 @@
use super::{FailMode, ProcRes, TestCx, WillExecute};
use crate::errors;
impl TestCx<'_> {
pub(super) fn run_incremental_test(&self) {
@@ -57,10 +56,7 @@ fn run_cpass_test(&self) {
self.fatal_proc_rec("compilation failed!", &proc_res);
}
// FIXME(#41968): Move this check to tidy?
if !errors::load_errors(&self.testpaths.file, self.revision).is_empty() {
self.fatal("build-pass tests with expected warnings should be moved to ui/");
}
self.check_compiler_output_for_incr(&proc_res);
}
fn run_rpass_test(&self) {
@@ -72,10 +68,7 @@ fn run_rpass_test(&self) {
self.fatal_proc_rec("compilation failed!", &proc_res);
}
// FIXME(#41968): Move this check to tidy?
if !errors::load_errors(&self.testpaths.file, self.revision).is_empty() {
self.fatal("run-pass tests with expected warnings should be moved to ui/");
}
self.check_compiler_output_for_incr(&proc_res);
if let WillExecute::Disabled = should_run {
return;