Skip to content

Commit 2846e76

Browse files
MaskRaykovdan01
authored andcommitted
[test] add --implicit-check-not=error and avoid expensive .* regex
1 parent f459527 commit 2846e76

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lld/test/ELF/aarch64-reloc-pauth-ro.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# RUN: llvm-mc -filetype=obj -triple=aarch64 %p/Inputs/shared2.s -o %t.so.o
44
# RUN: ld.lld -shared %t.so.o -soname=so -o %t.so
55
# RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o
6-
# RUN: not ld.lld -pie %t.o %t.so -o %t2 2>&1 | FileCheck -DFILE=%t %s
6+
# RUN: not ld.lld -pie %t.o %t.so -o %t2 2>&1 | FileCheck -DFILE=%t %s --implicit-check-not=error:
77

88
# CHECK: error: relocation R_AARCH64_AUTH_ABS64 cannot be used against symbol 'zed2'; recompile with -fPIC
99
# CHECK-NEXT: >>> defined in [[FILE]].so

lld/test/ELF/aarch64-reloc-pauth.s

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@
4343

4444
# PIE: Section Headers:
4545
# PIE-NEXT: Name Type Address Off Size ES Flg Lk Inf Al
46-
# PIE: .rela.dyn RELA {{0*}}[[ADDR1:.*]] {{0*}}[[ADDR1]] 000108 18 A 1 0 8
46+
# PIE: .rela.dyn RELA {{0*}}[[#%x,ADDR1:]]
47+
# PIE-SAME: {{0*}}[[#ADDR1]] 000108 18 A 1 0 8
4748

48-
# PIE: Relocation section '.rela.dyn' at offset 0x[[ADDR1]] contains 11 entries:
49+
# PIE: Relocation section '.rela.dyn' at offset 0x[[#ADDR1]] contains 11 entries:
4950
# PIE-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
5051
# PIE-NEXT: 0000000000030470 0000000000000411 R_AARCH64_AUTH_RELATIVE 1
5152
# PIE-NEXT: 0000000000030478 0000000000000411 R_AARCH64_AUTH_RELATIVE 30472

0 commit comments

Comments
 (0)