[Lldb-commits] [lldb] ea97066 - [test] [lldb] Use filename instead of index in test
Jan Kratochvil via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 2 12:13:09 PDT 2021
Author: Eric Leese
Date: 2021-08-02T21:12:57+02:00
New Revision: ea9706626ce3f83b8433849049cc3c64b6b7297c
URL: https://github.com/llvm/llvm-project/commit/ea9706626ce3f83b8433849049cc3c64b6b7297c
DIFF: https://github.com/llvm/llvm-project/commit/ea9706626ce3f83b8433849049cc3c64b6b7297c.diff
LOG: [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
Added:
Modified:
lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c
Removed:
################################################################################
diff --git a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c
index b473f0df78dc7..7e5a44035df71 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c
+++ b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c
@@ -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
More information about the lldb-commits
mailing list