summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/corrupt.test
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-05-01 05:27:20 +0000
committerFangrui Song <maskray@google.com>2019-05-01 05:27:20 +0000
commite29e30b1397f3e50f3487491f8a77ae08e4e3471 (patch)
tree214ee9eb6e3ea8b5007db0c5eee8bde4ea017c3f /llvm/test/Object/corrupt.test
parentfccb505f0f59d94b0c46f2dd28fd8893ca45899d (diff)
downloadbcm5719-llvm-e29e30b1397f3e50f3487491f8a77ae08e4e3471.tar.gz
bcm5719-llvm-e29e30b1397f3e50f3487491f8a77ae08e4e3471.zip
[llvm-readobj] Change -long-option to --long-option in tests. NFC
We use both -long-option and --long-option in tests. Switch to --long-option for consistency. In the "llvm-readelf" mode, -long-option is discouraged as it conflicts with grouped short options and it is not accepted by GNU readelf. While updating the tests, change llvm-readobj -s to llvm-readobj -S to reduce confusion ("s" is --section-headers in llvm-readobj but --symbols in llvm-readelf). llvm-svn: 359649
Diffstat (limited to 'llvm/test/Object/corrupt.test')
-rw-r--r--llvm/test/Object/corrupt.test14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/test/Object/corrupt.test b/llvm/test/Object/corrupt.test
index 82a581f486f..35623b431b7 100644
--- a/llvm/test/Object/corrupt.test
+++ b/llvm/test/Object/corrupt.test
@@ -27,45 +27,45 @@ VER: error: Invalid version entry
// The file is missing the dynamic string table but has references to it.
-RUN: not llvm-readobj -dynamic-table %p/Inputs/corrupt-invalid-strtab.elf.x86-64 \
+RUN: not llvm-readobj --dynamic-table %p/Inputs/corrupt-invalid-strtab.elf.x86-64 \
RUN: 2>&1 | FileCheck --check-prefix=STRTAB %s
STRTAB: Invalid dynamic string table reference
-RUN: not llvm-readobj -program-headers \
+RUN: not llvm-readobj -l \
RUN: %p/Inputs/corrupt-invalid-phentsize.elf.x86-64 2>&1 | \
RUN: FileCheck --check-prefix=PHENTSIZE %s
PHENTSIZE: invalid e_phentsize
-RUN: not llvm-readobj -dynamic-table \
+RUN: not llvm-readobj --dynamic-table \
RUN: %p/Inputs/corrupt-invalid-virtual-addr.elf.x86-64 2>&1 | \
RUN: FileCheck --check-prefix=VIRTADDR %s
VIRTADDR: Virtual address is not in any segment
-RUN: not llvm-readobj -dyn-relocations \
+RUN: not llvm-readobj --dyn-relocations \
RUN: %p/Inputs/corrupt-invalid-relocation-size.elf.x86-64 2>&1 | \
RUN: FileCheck --check-prefix=RELOC %s
RELOC: Invalid entity size
-RUN: not llvm-readobj -dyn-relocations \
+RUN: not llvm-readobj --dyn-relocations \
RUN: %p/Inputs/corrupt-invalid-dynamic-table-size.elf.x86-64 2>&1 | \
RUN: FileCheck --check-prefix=DYN-TABLE-SIZE %s
DYN-TABLE-SIZE: Invalid entity size
-RUN: not llvm-readobj -dyn-relocations \
+RUN: not llvm-readobj --dyn-relocations \
RUN: %p/Inputs/corrupt-invalid-dynamic-table-offset.elf.x86-64 2>&1 | \
RUN: FileCheck --check-prefix=DYN-TABLE-OFFSET %s
DYN-TABLE-OFFSET: error: Invalid data was encountered while parsing the file
-RUN: not llvm-readobj -dyn-relocations \
+RUN: not llvm-readobj --dyn-relocations \
RUN: %p/Inputs/corrupt-invalid-dynamic-table-too-large.elf.x86-64 2>&1 | \
RUN: FileCheck --check-prefix=DYN-TABLE-TOO-LARGE %s
OpenPOWER on IntegriCloud