From e29e30b1397f3e50f3487491f8a77ae08e4e3471 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 1 May 2019 05:27:20 +0000 Subject: [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 --- llvm/test/Object/corrupt.test | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'llvm/test/Object/corrupt.test') 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 -- cgit v1.2.3