[PATCH] D72358: [llvm-objcopy][test] Fix tests when path contains "bar"
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 30 18:05:49 PST 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG200ac6c3d88a: [llvm-objcopy][test] Fix tests when path contains "bar" (authored by MaskRay).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72358/new/
https://reviews.llvm.org/D72358
Files:
llvm/test/tools/llvm-objcopy/ELF/only-section-strip-undefined.test
llvm/test/tools/llvm-objcopy/ELF/tail-merged-string-tables.test
Index: llvm/test/tools/llvm-objcopy/ELF/tail-merged-string-tables.test
===================================================================
--- llvm/test/tools/llvm-objcopy/ELF/tail-merged-string-tables.test
+++ llvm/test/tools/llvm-objcopy/ELF/tail-merged-string-tables.test
@@ -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 (
Index: llvm/test/tools/llvm-objcopy/ELF/only-section-strip-undefined.test
===================================================================
--- llvm/test/tools/llvm-objcopy/ELF/only-section-strip-undefined.test
+++ llvm/test/tools/llvm-objcopy/ELF/only-section-strip-undefined.test
@@ -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 @@
# 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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72358.241622.patch
Type: text/x-patch
Size: 2439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200131/7e46116f/attachment.bin>
More information about the llvm-commits
mailing list