Skip to content

Commit

Permalink
Add error pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Jan 13, 2025
1 parent 06fdf3d commit 500fce1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions build_system/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -848,9 +848,17 @@ fn contains_ui_error_patterns(file_path: &Path, keep_lto_tests: bool) -> Result<
if line.is_empty() {
continue;
}
if ["//@ error-pattern:", "//@ build-fail", "//@ run-fail", "-Cllvm-args", "//~", "thread"]
.iter()
.any(|check| line.contains(check))
if [
"//@ error-pattern:",
"//@ build-fail",
"//@ run-fail",
"//@ known-bug",
"-Cllvm-args",
"//~",
"thread",
]
.iter()
.any(|check| line.contains(check))
{
return Ok(true);
}
Expand Down

0 comments on commit 500fce1

Please sign in to comment.