diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-20 03:31:25 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-20 03:31:25 +0000 |
commit | c46ffb7a49d18e4a6bf75eb7efcba3cca53221e8 (patch) | |
tree | eabcc8e62496b13a510b3793d8f116fbcc794c63 /llvm/test/Object/corrupt.test | |
parent | fb3acd62162b29bb736ddeed4f21e173cbc3b1f3 (diff) | |
download | bcm5719-llvm-c46ffb7a49d18e4a6bf75eb7efcba3cca53221e8.tar.gz bcm5719-llvm-c46ffb7a49d18e4a6bf75eb7efcba3cca53221e8.zip |
Move CHECKs closer to the RUN line.
llvm-svn: 242657
Diffstat (limited to 'llvm/test/Object/corrupt.test')
-rw-r--r-- | llvm/test/Object/corrupt.test | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/llvm/test/Object/corrupt.test b/llvm/test/Object/corrupt.test index 41c7a9ff6c3..0a655704610 100644 --- a/llvm/test/Object/corrupt.test +++ b/llvm/test/Object/corrupt.test @@ -2,22 +2,25 @@ RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -sections \ RUN: 2>&1 | FileCheck --check-prefix=SECNAME %s +SECNAME: Error reading file: Invalid data was encountered while parsing the file. + + // Section data offset past end of file. RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -sections -section-data \ RUN: 2>&1 | FileCheck --check-prefix=SECDATA %s +SECDATA: Error reading file: Invalid data was encountered while parsing the file. + + // Symbol name offset overflows string table. RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -symbols \ RUN: 2>&1 | FileCheck --check-prefix=SYMNAME %s +SYMNAME: Error reading file: Invalid data was encountered while parsing the file. + + // Version index in .gnu.version overflows the version map. RUN: not llvm-readobj %p/Inputs/corrupt-version.elf-x86_64 -dt \ RUN: 2>&1 | FileCheck --check-prefix=VER %s -SECNAME: Error reading file: Invalid data was encountered while parsing the file. - -SECDATA: Error reading file: Invalid data was encountered while parsing the file. - -SYMNAME: Error reading file: Invalid data was encountered while parsing the file. - VER: Error reading file: Invalid data was encountered while parsing the file. |