Skip to content

Commit e24abde

Browse files
[BOLT][AArch64] Skip gadget pacret test on RHEL8
1 parent 8d9911e commit e24abde

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

bolt/test/binary-analysis/AArch64/gs-pacret-autiasp.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// REQUIRES: !rhel8
2+
13
// RUN: %clang %cflags -march=armv9.5-a+pauth-lr -mbranch-protection=pac-ret %s %p/../../Inputs/asm_main.c -o %t.exe
24
// RUN: llvm-bolt-binary-analysis --scanners=pacret %t.exe 2>&1 | FileCheck %s
35

@@ -883,4 +885,3 @@ f_autib171615:
883885
// CHECK-NEXT: {{[0-9a-f]+}}: ret
884886
ret
885887
.size f_autib171615, .-f_autib171615
886-

bolt/test/lit.cfg.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@
7575
if lit.util.which("fuser"):
7676
config.available_features.add("fuser")
7777

78+
rhel_release="/etc/redhat-release"
79+
if os.path.exists(rhel_release) and \
80+
"release 8" in open(rhel_release).read().lower():
81+
config.available_features.add("rhel8")
82+
7883
llvm_config.use_default_substitutions()
7984

8085
llvm_config.config.environment["CLANG"] = config.bolt_clang

0 commit comments

Comments
 (0)