Skip to content

Commit

Permalink
[test] [lldb] Use filename instead of index in test
Browse files Browse the repository at this point in the history
In some environments this test could fail if start.S has its own DWARF
CompileUnit or similar are included before the DWARF CompileUnit for the
file.

This change makes the test independent of the index of the compile unit,
instead checking the filename.

Reviewed By: herhut, jankratochvil

Differential Revision: https://reviews.llvm.org/D107300
  • Loading branch information
EricSL authored and jankratochvil committed Aug 2, 2021
1 parent 469793e commit ea97066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c
Expand Up @@ -22,8 +22,8 @@
// CHECK-NOT: 2.dwo,
// CHECK: (lldb) image lookup
// CHECK-NOT: 2.dwo,
// CHECK: CompileUnit: id = {0x00000000}, file =
// CHECK-SAME: language = "c99"
// CHECK: CompileUnit: id =
// CHECK-SAME: /dwarf5-lazy-dwo.c", language = "c99"
// CHECK-NOT: 2.dwo,

#ifdef ONE
Expand Down

0 comments on commit ea97066

Please sign in to comment.