[test] [lldb] Use filename instead of index in test

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
This commit is contained in:
Eric Leese 2021-08-02 21:11:07 +02:00 committed by Jan Kratochvil
parent 469793efa7
commit ea9706626c
1 changed files with 2 additions and 2 deletions

View File

@ -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