mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[llvm-objcopy][test] Fix tests when path contains "bar"
Differential Revision: https://reviews.llvm.org/D72358
This commit is contained in:
parent
3a5d1f8cce
commit
7e59988a3f
@ -3,12 +3,13 @@
|
||||
|
||||
# RUN: yaml2obj --docnum=1 %s -o %t.o
|
||||
# RUN: llvm-objcopy -j .other.section %t.o %t2.o
|
||||
# RUN: llvm-readobj --symbols %t2.o | FileCheck %s --implicit-check-not=bar
|
||||
# RUN: llvm-readobj --symbols %t2.o | FileCheck %s
|
||||
|
||||
# RUN: llvm-objcopy -j .text -j .rela.text1 %t.o %t2.o
|
||||
# RUN: llvm-readobj --symbols %t2.o | FileCheck %s --check-prefix=BAR
|
||||
|
||||
# BAR: bar
|
||||
# CHECK-NOT: Name: bar
|
||||
# BAR: Name: bar
|
||||
|
||||
--- !ELF
|
||||
FileHeader:
|
||||
@ -43,7 +44,7 @@ Symbols:
|
||||
|
||||
# RUN: yaml2obj --docnum=2 %s -o %t.o
|
||||
# RUN: llvm-objcopy -j .keep_me %t.o %t2.o
|
||||
# RUN: llvm-readobj --symbols %t2.o | FileCheck %s --implicit-check-not=bar
|
||||
# RUN: llvm-readobj --symbols %t2.o | FileCheck %s
|
||||
|
||||
--- !ELF
|
||||
FileHeader:
|
||||
|
@ -5,12 +5,13 @@
|
||||
# RUN: yaml2obj %s -o %t.o
|
||||
## Sanity check that the strings have been pooled.
|
||||
# RUN: llvm-readobj %t.o --string-dump .strtab --string-dump .shstrtab \
|
||||
# RUN: | FileCheck %s --check-prefix=VALIDATE --implicit-check-not=bar --implicit-check-not=.blag
|
||||
# RUN: | FileCheck %s --check-prefix=VALIDATE --implicit-check-not='] bar' --implicit-check-not=.blag
|
||||
|
||||
# VALIDATE: String dump of section '.strtab':
|
||||
# VALIDATE: bazfoobar
|
||||
# VALIDATE: String dump of section '.shstrtab':
|
||||
# VALIDATE: .blam.blah.blag
|
||||
# VALIDATE: String dump of section '.strtab':
|
||||
# VALIDATE-NEXT: [ 1] bazfoobar
|
||||
# VALIDATE-EMPTY:
|
||||
# VALIDATE-NEXT: String dump of section '.shstrtab':
|
||||
# VALIDATE-NEXT: [ 1] .blam.blah.blag
|
||||
|
||||
## Case 1: Basic copy.
|
||||
# RUN: llvm-objcopy %t.o %t.copy
|
||||
@ -57,7 +58,7 @@
|
||||
## Case 5: Remove symbol.
|
||||
# RUN: llvm-objcopy %t.o %t.remove-symbol -N foobar
|
||||
# RUN: llvm-readobj --symbols %t.remove-symbol \
|
||||
# RUN: | FileCheck %s --check-prefix=REMOVE-SYMBOL --implicit-check-not foobar
|
||||
# RUN: | FileCheck %s --check-prefix=REMOVE-SYMBOL --implicit-check-not='Name: foobar'
|
||||
|
||||
# REMOVE-SYMBOL: Symbols [
|
||||
# REMOVE-SYMBOL: Name: bar (
|
||||
|
Loading…
Reference in New Issue
Block a user