forked from OSchip/llvm-project
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:
parent
d487d6401d
commit
f5fcf61566
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue