about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2025-01-13 08:29:28 -0500
committerAntoni Boucher <bouanto@zoho.com>2025-01-13 08:29:28 -0500
commit500fce185cea1fdb259c1e88f2610d463ef63e3d (patch)
tree6593e25caa21feab7e675bbf79547330bcbbcf21
parent06fdf3df2ce1fdfec057ac3c43f0fc0ea80aec63 (diff)
downloadrust-500fce185cea1fdb259c1e88f2610d463ef63e3d.tar.gz
rust-500fce185cea1fdb259c1e88f2610d463ef63e3d.zip
Add error pattern
-rw-r--r--build_system/src/test.rs14
1 files changed, 11 insertions, 3 deletions
diff --git a/build_system/src/test.rs b/build_system/src/test.rs
index 371fcb4bc30..21286e97271 100644
--- a/build_system/src/test.rs
+++ b/build_system/src/test.rs
@@ -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);
         }