Skip to content

Commit

Permalink
fixed tests under llvm-15 and object bump
Browse files Browse the repository at this point in the history
two typos and one change in message text:

horin/tests/tu-units-v5.s:9:3: error: misspelled directive 'CHECK_DAG:'
\# CHECK_DAG: .debug_tu_index contents:

thorin/tests/type-dedup-v5.test:8:3: error: misspelled directive 'CHECK_DAG:'
\# CHECK_DAG: .debug_tu_index contents:

thorin/tests/compress-fail.test:6:8: error: CHECK: expected string not found in input
CHECK: Invalid ELF GNU compressed section header
                                                                                                          ^
<stdin>:4:2: note: possible intended match here
 Invalid GNU compressed section header
  • Loading branch information
klensy authored and davidtwco committed Aug 6, 2024
1 parent 1f5f8e6 commit bd623be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/compress-fail.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RUN: not thorin %p/inputs/empty-compressed-section.dwo -o %t 2>&1 | FileCheck %s
RUN: not thorin %p/inputs/invalid-compressed.dwo -o %t 2>&1 | FileCheck --check-prefix=INVALID %s

CHECK: Error: Failed to add `{{.*}}` to DWARF package
CHECK: Invalid ELF GNU compressed section header
CHECK: Invalid GNU compressed section header

# `llvm-dwp` fails to decompress this, but `thorin` is able to but the contents aren't meaningful.
INVALID: Error: Failed to add `{{.*}}/invalid-compressed.dwo` to DWARF package
Expand Down
2 changes: 1 addition & 1 deletion tests/tu-units-v5.s
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# CHECK-DAG: .debug_info.dwo contents:
# CHECK: 0x00000000: Type Unit: length = 0x00000017, format = DWARF32, version = 0x0005, unit_type = DW_UT_split_type, abbr_offset = 0x0000, addr_size = 0x08, name = '', type_signature = [[TUID1:.*]], type_offset = 0x0019 (next unit at 0x0000001b)
# CHECK: 0x0000001b: Type Unit: length = 0x00000017, format = DWARF32, version = 0x0005, unit_type = DW_UT_split_type, abbr_offset = 0x0000, addr_size = 0x08, name = '', type_signature = [[TUID2:.*]], type_offset = 0x0019 (next unit at 0x00000036)
# CHECK_DAG: .debug_tu_index contents:
# CHECK-DAG: .debug_tu_index contents:
# CHECK: version = 5, units = 2, slots = 4
# CHECK: Index Signature INFO ABBREV
# CHECK: 1 [[TUID1]] [0x00000000, 0x0000001b) [0x00000000, 0x00000010)
Expand Down
2 changes: 1 addition & 1 deletion tests/type-dedup-v5.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
# RUN: thorin %t-a.dwo %t-b.dwo -o %t.dwp
# RUN: llvm-dwarfdump -debug-tu-index %t.dwp | FileCheck %s

# CHECK_DAG: .debug_tu_index contents:
# CHECK-DAG: .debug_tu_index contents:
# CHECK: version = 5, units = 1, slots = 2

0 comments on commit bd623be

Please sign in to comment.