summaryrefslogtreecommitdiff
path: root/test/DebugInfo/dwarfdump-type-units.test
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-09-24 00:13:23 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-09-24 00:13:23 +0000
commitcb21ba8e76eb629078a7b2f953c96bf09ad76ef7 (patch)
tree613364cca9e561c6272c257707386d24913cea00 /test/DebugInfo/dwarfdump-type-units.test
parentcb3023ae51ebf9c11c279607f5c845570220cc4f (diff)
downloadllvm-cb21ba8e76eb629078a7b2f953c96bf09ad76ef7.tar.gz
llvm-cb21ba8e76eb629078a7b2f953c96bf09ad76ef7.tar.bz2
llvm-cb21ba8e76eb629078a7b2f953c96bf09ad76ef7.tar.xz
Make dwarfdump-type-units.test order-independent
The order in which the comdat type unit sections appear in the output is unspecified and may vary from machine to machine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/dwarfdump-type-units.test')
-rw-r--r--test/DebugInfo/dwarfdump-type-units.test45
1 files changed, 26 insertions, 19 deletions
diff --git a/test/DebugInfo/dwarfdump-type-units.test b/test/DebugInfo/dwarfdump-type-units.test
index 64f4899a17..311a77a41b 100644
--- a/test/DebugInfo/dwarfdump-type-units.test
+++ b/test/DebugInfo/dwarfdump-type-units.test
@@ -1,21 +1,28 @@
-RUN: llvm-dwarfdump %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck %s
+RUN: llvm-dwarfdump %p/Inputs/dwarfdump-type-units.elf-x86-64 > %t
+RUN: cat %t | FileCheck -check-prefix=FOO %s
+RUN: cat %t | FileCheck -check-prefix=BAR %s
-CHECK: debug_info contents:
-CHECK: DW_TAG_variable
-CHECK-NEXT: DW_AT_name {{.*}}"f"
-CHECK: DW_AT_type [DW_FORM_ref_sig8] ([[FOO_SIG:0x[0-9a-f]*]])
-CHECK: DW_TAG_variable
-CHECK-NEXT: DW_AT_name {{.*}}"b"
-CHECK: DW_AT_type [DW_FORM_ref_sig8] ([[BAR_SIG:0x[0-9a-f]*]])
+FOO: debug_info contents:
+FOO: DW_TAG_variable
+FOO-NEXT: DW_AT_name {{.*}}"f"
+FOO: DW_AT_type [DW_FORM_ref_sig8] ([[FOO_SIG:0x[0-9a-f]*]])
-CHECK: debug_types contents:
-CHECK: 0x00000000: Type Unit: {{.*}} type_signature = [[FOO_SIG]] type_offset = 0x[[FOO_OFF:[0-9a-f]*]] (next unit at
-CHECK: DW_TAG_type_unit
-CHECK-NOT: NULL
-CHECK: 0x0000[[FOO_OFF]]: DW_TAG_structure_type
-CHECK-NEXT: DW_AT_name {{.*}}"foo"
-CHECK: 0x00000000: Type Unit: {{.*}} type_signature = [[BAR_SIG]] type_offset = 0x[[BAR_OFF:[0-9a-f]*]] (next unit at
-CHECK: DW_TAG_type_unit
-CHECK-NOT: NULL
-CHECK: 0x0000[[BAR_OFF]]: DW_TAG_structure_type
-CHECK-NEXT: DW_AT_name {{.*}}"bar"
+FOO: debug_types contents:
+FOO: 0x00000000: Type Unit: {{.*}} type_signature = [[FOO_SIG]] type_offset = 0x[[FOO_OFF:[0-9a-f]*]] (next unit at
+FOO: DW_TAG_type_unit
+FOO-NOT: NULL
+FOO: 0x0000[[FOO_OFF]]: DW_TAG_structure_type
+FOO-NEXT: DW_AT_name {{.*}}"foo"
+
+BAR: debug_info contents:
+BAR: DW_TAG_variable
+BAR: DW_TAG_variable
+BAR-NEXT: DW_AT_name {{.*}}"b"
+BAR: DW_AT_type [DW_FORM_ref_sig8] ([[BAR_SIG:0x[0-9a-f]*]])
+
+BAR: debug_types contents:
+BAR: 0x00000000: Type Unit: {{.*}} type_signature = [[BAR_SIG]] type_offset = 0x[[BAR_OFF:[0-9a-f]*]] (next unit at
+BAR: DW_TAG_type_unit
+BAR-NOT: NULL
+BAR: 0x0000[[BAR_OFF]]: DW_TAG_structure_type
+BAR-NEXT: DW_AT_name {{.*}}"bar"