From: Rafael Espindola Date: Mon, 29 Jun 2015 14:12:14 +0000 (+0000) Subject: Add a testcase for an invalid file. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=528a204ab98445917576e6bb74136b5c34b94a7f;p=oota-llvm.git Add a testcase for an invalid file. We were already checking this, but had no tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240945 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Object/Inputs/invalid-strtab-non-null.elf b/test/Object/Inputs/invalid-strtab-non-null.elf new file mode 100644 index 00000000000..f52c0a14013 Binary files /dev/null and b/test/Object/Inputs/invalid-strtab-non-null.elf differ diff --git a/test/Object/invalid.test b/test/Object/invalid.test index 2e2c924dfae..17cbb30c9c2 100644 --- a/test/Object/invalid.test +++ b/test/Object/invalid.test @@ -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