summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2017-07-13 19:46:21 +0000
committerJim Ingham <jingham@apple.com>2017-07-13 19:46:21 +0000
commit61949c9f6f82416f5d6599d02a834a944eb3168b (patch)
tree1059189fae4fc3624defd000939eb1f0f9cdb7b6 /lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints
parent30bac791621d1f429fa9d6f4d212423f607378b8 (diff)
downloadbcm5719-llvm-61949c9f6f82416f5d6599d02a834a944eb3168b.tar.gz
bcm5719-llvm-61949c9f6f82416f5d6599d02a834a944eb3168b.zip
Convert a few more tests to use run_to_source_breakpoint.
llvm-svn: 307943
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/TestConsecutiveBreakpoints.py24
1 files changed, 2 insertions, 22 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/TestConsecutiveBreakpoints.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/TestConsecutiveBreakpoints.py
index 312f2944102..6afde150d8d 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/TestConsecutiveBreakpoints.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/TestConsecutiveBreakpoints.py
@@ -18,29 +18,9 @@ class ConsecutiveBreakpointsTestCase(TestBase):
def prepare_test(self):
self.build()
- exe = os.path.join(os.getcwd(), "a.out")
- # Create a target by the debugger.
- self.target = self.dbg.CreateTarget(exe)
- self.assertTrue(self.target, VALID_TARGET)
-
- breakpoint1 = self.target.BreakpointCreateBySourceRegex(
- "Set breakpoint here", lldb.SBFileSpec("main.cpp"))
- self.assertTrue(
- breakpoint1 and breakpoint1.GetNumLocations() == 1,
- VALID_BREAKPOINT)
-
- # Now launch the process, and do not stop at entry point.
- self.process = self.target.LaunchSimple(
- None, None, self.get_process_working_directory())
- self.assertIsNotNone(self.process, PROCESS_IS_VALID)
-
- # We should be stopped at the first breakpoint
- self.thread = lldbutil.get_one_thread_stopped_at_breakpoint(
- self.process, breakpoint1)
- self.assertIsNotNone(
- self.thread,
- "Expected one thread to be stopped at breakpoint 1")
+ (self.target, self.process, self.thread, bkpt) = lldbutil.run_to_source_breakpoint(
+ self, "Set breakpoint here", lldb.SBFileSpec("main.cpp"))
# Set breakpoint to the next instruction
frame = self.thread.GetFrameAtIndex(0)
OpenPOWER on IntegriCloud