Skip to content

Commit 2e1614b

Browse files
committed
added new condition
1 parent c690eb7 commit 2e1614b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

build_system/src/test.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,13 +874,22 @@ fn contains_ui_error_patterns(file_path: &Path, keep_lto_tests: bool) -> Result<
874874
if line.contains("//[") && line.contains("]~") {
875875
return Ok(true);
876876
}
877+
877878
// Check for pass markers
878879
if ["//@ check-pass", "//@ build-pass", "//@ run-pass"]
879880
.iter()
880881
.any(|marker| line.contains(marker))
881882
{
882883
has_pass_marker = true;
883884
}
885+
886+
if ["//@ ignore-auxiliary"]
887+
.iter()
888+
.any(|marker| line.contains(marker))
889+
{
890+
return Ok(false);
891+
}
892+
884893
}
885894
let file_path = file_path.display().to_string();
886895
if file_path.contains("ambiguous-4-extern.rs") {
@@ -892,8 +901,6 @@ fn contains_ui_error_patterns(file_path: &Path, keep_lto_tests: bool) -> Result<
892901
return Ok(true);
893902
}
894903

895-
// If there are no error patterns, check for pass markers
896-
// Keep tests with pass markers, remove tests without them
897904
Ok(!has_pass_marker)
898905
}
899906

0 commit comments

Comments
 (0)