Move CHECKs closer to the RUN line.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 20 Jul 2015 03:31:25 +0000 (03:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 20 Jul 2015 03:31:25 +0000 (03:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242657 91177308-0d34-0410-b5e6-96231b3b80d8

test/Object/corrupt.test

index 41c7a9ff6c39933d78e408a45b3b5f70eb94d57d..0a655704610cdd74d2f0e521e7e554e579b5fe98 100644 (file)
@@ -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.