[llvm] [BOLT] Improve unmarked-data.test (PR #160263)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 23 02:41:58 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-bolt

Author: Gergely Bálint (bgergely0)

<details>
<summary>Changes</summary>

The test checked for no BOLT-WARNINGs without specifying the expected warning. This caused the test to fail on warning unrelated to the test.

Added the BOLT-WARNING that was present before 8579db96e8c31.

---
Full diff: https://github.com/llvm/llvm-project/pull/160263.diff


1 Files Affected:

- (modified) bolt/test/AArch64/unmarked-data.test (+1-1) 


``````````diff
diff --git a/bolt/test/AArch64/unmarked-data.test b/bolt/test/AArch64/unmarked-data.test
index 7a62994bb5c38..af6de11f3df60 100644
--- a/bolt/test/AArch64/unmarked-data.test
+++ b/bolt/test/AArch64/unmarked-data.test
@@ -2,7 +2,7 @@
 
 // RUN: yaml2obj %S/Inputs/unmarked-data.yaml -o %t.exe
 // RUN: llvm-bolt %t.exe -o %t.bolt --lite=0 --use-old-text=0 2>&1 | FileCheck %s
-// CHECK-NOT: BOLT-WARNING
+// CHECK-NOT: BOLT-WARNING: unable to disassemble instruction at offset
 // RUN: llvm-objdump -j .text -d --disassemble-symbols=first,second %t.bolt | FileCheck %s -check-prefix=CHECK-SYMBOL
 // CHECK-SYMBOL: <first>:
 // CHECK-SYMBOL: <second>:

``````````

</details>


https://github.com/llvm/llvm-project/pull/160263


More information about the llvm-commits mailing list