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

Gergely Bálint via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 23 02:41:19 PDT 2025


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

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.

>From d77bf4c2ee169fbff55ebf6d77bb68c7bee8c3b7 Mon Sep 17 00:00:00 2001
From: Gergely Balint <gergely.balint at arm.com>
Date: Tue, 23 Sep 2025 09:32:29 +0000
Subject: [PATCH] [BOLT] Improve unmarked-data.test

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.
---
 bolt/test/AArch64/unmarked-data.test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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>:



More information about the llvm-commits mailing list