summaryrefslogtreecommitdiffstats
path: root/lldb/test/tools/lldb-mi/TestMiBreakpoint.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/tools/lldb-mi/TestMiBreakpoint.py')
-rw-r--r--lldb/test/tools/lldb-mi/TestMiBreakpoint.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/test/tools/lldb-mi/TestMiBreakpoint.py b/lldb/test/tools/lldb-mi/TestMiBreakpoint.py
index 9b52c53b243..497ddc4a031 100644
--- a/lldb/test/tools/lldb-mi/TestMiBreakpoint.py
+++ b/lldb/test/tools/lldb-mi/TestMiBreakpoint.py
@@ -83,6 +83,17 @@ class MiBreakpointTestCase(lldbmi_testcase.MiTestCaseBase):
self.runCmd("-break-insert main.c:%d" % line)
self.expect("\^done,bkpt={number=\"3\"")
+ # Check with full path. TODO, figure out why this commands fails
+ # if -f is not given
+ line = line_number('main.c', '// BP_doloop')
+ full_path = os.path.join(os.getcwd(), "main.c")
+ self.runCmd("-break-insert -f %s:%d" % (full_path, line))
+ self.expect("\^done,bkpt={number=\"4\"")
+
+ self.runCmd("-exec-continue")
+ self.expect("\^running")
+ self.expect("\*stopped,reason=\"breakpoint-hit\"")
+
self.runCmd("-exec-continue")
self.expect("\^running")
self.expect("\*stopped,reason=\"breakpoint-hit\"")
OpenPOWER on IntegriCloud