From: George Rimar Date: Tue, 6 Aug 2019 14:34:39 +0000 (+0000) Subject: [test/Object] - Cleanup the Object\obj2yaml.test a bit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d8da9eb22055e02bf8543112eb6c5e5d93c16cf;p=llvm [test/Object] - Cleanup the Object\obj2yaml.test a bit. This makes 2 changes: 1) Removes unwind-section.elf-x86-64 object and the corresponding test case, because SHT_X86_64_UNWIND is already tested here: https://github.com/llvm-mirror/llvm/blob/master/test/tools/obj2yaml/section-type.yaml 2) Removes/partially moves "No such file or directory" test, because we already have a similar test here: https://github.com/llvm-mirror/llvm/blob/master/test/tools/obj2yaml/invalid_input_file.test Differential revision: https://reviews.llvm.org/D65570 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368044 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Object/Inputs/unwind-section.elf-x86-64 b/test/Object/Inputs/unwind-section.elf-x86-64 deleted file mode 100644 index 3a845086510..00000000000 Binary files a/test/Object/Inputs/unwind-section.elf-x86-64 and /dev/null differ diff --git a/test/Object/obj2yaml.test b/test/Object/obj2yaml.test index 00457ee9041..badc604239a 100644 --- a/test/Object/obj2yaml.test +++ b/test/Object/obj2yaml.test @@ -766,13 +766,3 @@ Symbols: # WASM-NEXT: Flags: [ ] # WASM-NEXT: - Index: 1 # WASM: ... - -# RUN: obj2yaml %p/Inputs/unwind-section.elf-x86-64 | FileCheck %s --check-prefix ELF-X86-64-UNWIND - -# ELF-X86-64-UNWIND: - Name: .eh_frame -# ELF-X86-64-UNWIND-NEXT: Type: SHT_X86_64_UNWIND -# ELF-X86-64-UNWIND-NEXT: Flags: [ SHF_ALLOC ] -# ELF-X86-64-UNWIND-NEXT: AddressAlign: 0x0000000000000001 - -# RUN: not obj2yaml %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s -# ENOENT: Error reading file: {{.*}}.blah: {{[Nn]}}o such file or directory diff --git a/test/tools/obj2yaml/invalid_input_file.test b/test/tools/obj2yaml/invalid_input_file.test index 573e753c8a8..0f1bac1be01 100644 --- a/test/tools/obj2yaml/invalid_input_file.test +++ b/test/tools/obj2yaml/invalid_input_file.test @@ -1,4 +1,3 @@ # RUN: not obj2yaml %p/path/does/not/exist 2>&1 | FileCheck %s -# Don't check the OS-dependent message "No such file or directory". -# CHECK: Error reading file: {{.*}}/path/does/not/exist: {{.*}} +# CHECK: Error reading file: {{.*}}/path/does/not/exist: {{[Nn]}}o such file or directory