Skip to content

Commit c1bba7c

Browse files
committed
[lldb/Interpreter] Add test for SwiftREPL initfile
This test adds `breakpoint set` commands with different source locations to a temporary `.lldbinit-swift-repl` and `.lldbinit` and after launching lldb, it checks that the breakpoint set in the debugger matches the source location from the SwiftREPL initfile. rdar://65836048 Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent 866b3d9 commit c1bba7c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Test that the Swift REPL init file works.
2+
// REQUIRES: system-darwin
3+
// RUN: export HOME=%t
4+
// RUN: mkdir -p %t
5+
// RUN: echo 'br set -f main.c -l 123' > ~/.lldbinit
6+
// RUN: echo 'br set -f swift-repl.c -l 456' > ~/.lldbinit-swift-repl
7+
// RUN: %lldb-init --repl < %s 2>&1 | FileCheck %s
8+
9+
:br list
10+
// CHECK: Current breakpoints
11+
// CHECK-NEXT: file = 'swift-repl.c', line = 456, exact_match = 0, locations = 0 (pending)

0 commit comments

Comments
 (0)