Skip to content

Commit 195669a

Browse files
committed
[BOLT] Fix pacret-synchronous-unwind.cpp test
The test case build a binary from C++, and checks for the number of functions the PointerAuthCFIFixup pass runs on. This can change based on the platform. To account for this, the patch changes the number to a regex.
1 parent 33d779d commit 195669a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bolt/test/runtime/AArch64/pacret-synchronous-unwind.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
// RUN: -fno-asynchronous-unwind-tables \
1212
// RUN: %s -o %t.exe -Wl,-q
1313
// RUN: llvm-bolt %t.exe -o %t.bolt | FileCheck %s --check-prefix=CHECK
14-
//
15-
// CHECK: PointerAuthCFIAnalyzer ran on 3 functions. Ignored
16-
// CHECK-NOT: 0 functions (0.00%) because of CFI inconsistencies
17-
// CHECK-SAME: 1 functions (33.33%) because of CFI inconsistencies
14+
15+
// Number of functions with .cfi-negate-ra-state in the binary is
16+
// platform-dependent.
17+
// CHECK: PointerAuthCFIAnalyzer ran on {{[0-9]}} functions.
18+
// CHECK: Ignored 1 functions ({{[0-9.]+}}%) because of CFI inconsistencies
1819
// CHECK-NEXT: BOLT-WARNING: PointerAuthCFIAnalyzer only supports asynchronous
1920
// CHECK-SAME: unwind tables. For C compilers, see -fasynchronous-unwind-tables.
2021

0 commit comments

Comments
 (0)