summaryrefslogtreecommitdiff
path: root/test/Object
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-10-11 16:56:33 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-10-11 16:56:33 +0000
commit86ab1f56e4e77afd2acd1d8ce65aa818fe7964a3 (patch)
treed12934b309ce692cdbdc3efb1c91709a2ffcec29 /test/Object
parent8a5a3a87a093b7b327d3409080d65a3a7ab098e7 (diff)
Convert an ErrorOr to Expected.
getRelocationAddend should never be called on non SHT_RELA sections, but changing that requires changing RelocVisitor.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object')
-rw-r--r--test/Object/invalid.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Object/invalid.test b/test/Object/invalid.test
index 66542259b90..b0b5528ab05 100644
--- a/test/Object/invalid.test
+++ b/test/Object/invalid.test
@@ -1,9 +1,11 @@
-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
RUN: not llvm-objdump -s %p/Inputs/invalid-strtab-size.elf 2>&1 | FileCheck %s
RUN: not llvm-objdump -s %p/Inputs/invalid-strtab-zero-size.elf 2>&1 | FileCheck %s
CHECK: Invalid data was encountered while parsing the file
+RUN: not llvm-dwarfdump %p/Inputs/invalid-bad-rel-type.elf 2>&1 | FileCheck --check-prefix=RELA %s
+RELA: Section is not SHT_RELA
+
RUN: not llvm-objdump -s %p/Inputs/invalid-strtab-non-null.elf 2>&1 | FileCheck --check-prefix=NON-NULL %s
NON-NULL: Invalid data was encountered while parsing the file