Skip to content

Commit 500fce1

Browse files
committed
Add error pattern
1 parent 06fdf3d commit 500fce1

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

build_system/src/test.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -848,9 +848,17 @@ fn contains_ui_error_patterns(file_path: &Path, keep_lto_tests: bool) -> Result<
848848
if line.is_empty() {
849849
continue;
850850
}
851-
if ["//@ error-pattern:", "//@ build-fail", "//@ run-fail", "-Cllvm-args", "//~", "thread"]
852-
.iter()
853-
.any(|check| line.contains(check))
851+
if [
852+
"//@ error-pattern:",
853+
"//@ build-fail",
854+
"//@ run-fail",
855+
"//@ known-bug",
856+
"-Cllvm-args",
857+
"//~",
858+
"thread",
859+
]
860+
.iter()
861+
.any(|check| line.contains(check))
854862
{
855863
return Ok(true);
856864
}

0 commit comments

Comments
 (0)