1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Add a testcase for an invalid file.

We were already checking this, but had no tests.

llvm-svn: 240945
This commit is contained in:
Rafael Espindola 2015-06-29 14:12:14 +00:00
parent d966b65619
commit f9a95b0fa5
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -1,3 +1,6 @@
RUN: not llvm-dwarfdump %p/Inputs/invalid-bad-rel-type.elf 2>&1 | FileCheck %s
RUN: not llvm-objdump -s %p/Inputs/invalid-strtab-type.elf 2>&1 | FileCheck %s
CHECK: Invalid data was encountered while parsing the file
RUN: not llvm-objdump -s %p/Inputs/invalid-strtab-non-null.elf 2>&1 | FileCheck --check-prefix=NON-NULL %s
NON-NULL: String table must end with a null terminator