Skip to content

Commit cab3d9b

Browse files
committed
(cherry picked from commit 5076d27)
1 parent 9b66219 commit cab3d9b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
; Verify that llvm-dwarfdump doesn't crash on broken input files.
22

3-
RUN: not llvm-dwarfdump %p/Inputs/invalid.elf 2>&1 | FileCheck %s --check-prefix=INVALID-ELF
4-
RUN: not llvm-dwarfdump %p/Inputs/invalid.elf.2 2>&1 | FileCheck %s --check-prefix=INVALID-ELF
5-
RUN: not llvm-dwarfdump %p/Inputs/invalid.elf.3 2>&1 | FileCheck %s --check-prefix=INVALID-ELF
6-
INVALID-ELF: Invalid data was encountered while parsing the file
3+
RUN: not llvm-dwarfdump %p/Inputs/invalid.elf 2>&1 | FileCheck %s --check-prefix=INVALID-ELF1
4+
RUN: not llvm-dwarfdump %p/Inputs/invalid.elf.2 2>&1 | FileCheck %s --check-prefix=INVALID-ELF2
5+
RUN: not llvm-dwarfdump %p/Inputs/invalid.elf.3 2>&1 | FileCheck %s --check-prefix=INVALID-ELF3
6+
INVALID-ELF1: section header table goes past the end of the file
7+
INVALID-ELF2: Invalid ELF data
8+
INVALID-ELF3: Invalid ELF class

0 commit comments

Comments
 (0)