summaryrefslogtreecommitdiff
path: root/test/Object/invalid.test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-29 14:12:14 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-29 14:12:14 +0000
commit528a204ab98445917576e6bb74136b5c34b94a7f (patch)
treedad97965e046e5283b3b6d41cc152a8204f2c408 /test/Object/invalid.test
parentdb89b93b4492e95010618a0018c7179898bedb47 (diff)
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
Diffstat (limited to 'test/Object/invalid.test')
-rw-r--r--test/Object/invalid.test3
1 files changed, 3 insertions, 0 deletions
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