diff options
author | Pavel Labath <pavel@labath.sk> | 2019-01-16 17:39:06 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-01-16 17:39:06 +0000 |
commit | 0805acfefe0442c2ca5de43bcfe2dac978b434cf (patch) | |
tree | e55fb1f31a2bc123506e96204330d17c2c72c795 | |
parent | ec846ba3860fc03b66a86c85fdc4fcb1a46ff290 (diff) |
Fix dir-separator-no-comp-dir-relative-name.s test added in r351328
In this test we have deliberately removed all information which may hint
at the correct path style, so we cannot assert that lldb uses a
particular style. Instead, we should just check that it does something
vaguely reasonable.
-rw-r--r-- | lldb/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lldb/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s b/lldb/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s index 6df3a3d3e48..f75a51eed48 100644 --- a/lldb/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s +++ b/lldb/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s @@ -1,5 +1,6 @@ -# Test that parsing of line tables works reasonably, even if the host directory -# separator does not match the separator of the compile unit. +# Test that parsing of line tables works reasonably. In this case the debug info +# does not have enough information for our heuristics to determine the path +# style, so we will just treat them as native host paths. # REQUIRES: lld @@ -8,10 +9,10 @@ # RUN: %lldb %t -s %S/Inputs/dir-separator-no-comp-dir-relative-name.lldbinit -o exit | FileCheck %s # CHECK-LABEL: image dump line-table a.c -# CHECK: Line table for foo/a.c -# CHECK-NEXT: 0x0000000000201000: foo/a.c:1 -# CHECK-NEXT: 0x0000000000201001: foo/b.c:1 -# CHECK-NEXT: 0x0000000000201002: foo/b.c:1 +# CHECK: Line table for foo{{.}}a.c +# CHECK-NEXT: 0x0000000000201000: foo{{.}}a.c:1 +# CHECK-NEXT: 0x0000000000201001: foo{{.}}b.c:1 +# CHECK-NEXT: 0x0000000000201002: foo{{.}}b.c:1 # CHECK-EMPTY: # CHECK-LABEL: breakpoint set -f a.c -l 1 |