summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-01-16 17:39:06 +0000
committerPavel Labath <pavel@labath.sk>2019-01-16 17:39:06 +0000
commit081194d9fa0b3af0afc89309ba364576dd80f256 (patch)
tree140e5c180690727189eb2d351930704a74d1b807
parent7dcea5ae3b34b7f105def72837ea22e61dacd663 (diff)
downloadbcm5719-llvm-081194d9fa0b3af0afc89309ba364576dd80f256.tar.gz
bcm5719-llvm-081194d9fa0b3af0afc89309ba364576dd80f256.zip
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. llvm-svn: 351359
-rw-r--r--lldb/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s13
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
OpenPOWER on IntegriCloud