[Lldb-commits] [lldb] r351359 - Fix dir-separator-no-comp-dir-relative-name.s test added in r351328

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 16 09:39:07 PST 2019


Author: labath
Date: Wed Jan 16 09:39:06 2019
New Revision: 351359

URL: http://llvm.org/viewvc/llvm-project?rev=351359&view=rev
Log:
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.

Modified:
    lldb/trunk/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s

Modified: lldb/trunk/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s?rev=351359&r1=351358&r2=351359&view=diff
==============================================================================
--- lldb/trunk/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s (original)
+++ lldb/trunk/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s Wed Jan 16 09:39:06 2019
@@ -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




More information about the lldb-commits mailing list