]> granicus.if.org Git - llvm/commitdiff
[test/Object] - Cleanup the Object\obj2yaml.test a bit.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 6 Aug 2019 14:34:39 +0000 (14:34 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 6 Aug 2019 14:34:39 +0000 (14:34 +0000)
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

test/Object/Inputs/unwind-section.elf-x86-64 [deleted file]
test/Object/obj2yaml.test
test/tools/obj2yaml/invalid_input_file.test

diff --git a/test/Object/Inputs/unwind-section.elf-x86-64 b/test/Object/Inputs/unwind-section.elf-x86-64
deleted file mode 100644 (file)
index 3a84508..0000000
Binary files a/test/Object/Inputs/unwind-section.elf-x86-64 and /dev/null differ
index 00457ee904116fcc600076eafe007cde7cfd96f8..badc604239a1454c64d3b1ede202caf5e1e437a4 100644 (file)
@@ -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
index 573e753c8a8748fba949b0332d9cab82b33bfa2f..0f1bac1be01a5c3e6ead697348c299a028175ba9 100644 (file)
@@ -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