Don't false-positive match against binary path.

copy-rel-abs.s uses llvm-objdump to generate output that's then run
through FileCheck. llvm-objdump prints the file path at the top of the
file, which means that any build path that contains 'zed' will get
false-matched. Ensure that 'zed' is only matched after the 'SYMBOL
TABLE:' output, preventing this from failing if your build directory is
~/build/sanitized-xxx/, or similar.

llvm-svn: 372351
This commit is contained in:
Mitch Phillips 2019-09-19 20:44:12 +00:00
parent d487d6401d
commit f5fcf61566
1 changed files with 4 additions and 1 deletions

View File

@ -12,11 +12,14 @@
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t2.o
# RUN: ld.lld %t2.o %t1.so -o %t2
# RUN: llvm-objdump -t %t2 | FileCheck %s --implicit-check-not=zed
# RUN: llvm-objdump -t %t2 | FileCheck %s
# CHECK: SYMBOL TABLE:
# CHECK-NOT: zed
# CHECK: .bss.rel.ro {{.*}} foo
# CHECK-NOT: zed
# CHECK: .bss.rel.ro {{.*}} bar
# CHECK-NOT: zed
.global _start
_start: