diff options
author | Jim Ingham <jingham@apple.com> | 2017-07-13 19:46:21 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2017-07-13 19:46:21 +0000 |
commit | 61949c9f6f82416f5d6599d02a834a944eb3168b (patch) | |
tree | 1059189fae4fc3624defd000939eb1f0f9cdb7b6 /lldb/packages/Python/lldbsuite/test/expression_command | |
parent | 30bac791621d1f429fa9d6f4d212423f607378b8 (diff) | |
download | bcm5719-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/expression_command')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/expression_command/unwind_expression/TestUnwindExpression.py | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/unwind_expression/TestUnwindExpression.py b/lldb/packages/Python/lldbsuite/test/expression_command/unwind_expression/TestUnwindExpression.py index 9cc585b75aa..3b01d4470de 100644 --- a/lldb/packages/Python/lldbsuite/test/expression_command/unwind_expression/TestUnwindExpression.py +++ b/lldb/packages/Python/lldbsuite/test/expression_command/unwind_expression/TestUnwindExpression.py @@ -23,32 +23,8 @@ class UnwindFromExpressionTest(TestBase): def build_and_run_to_bkpt(self): self.build() - exe = os.path.join(os.getcwd(), "a.out") - - target = self.dbg.CreateTarget(exe) - self.assertTrue(target, VALID_TARGET) - - # Create the breakpoint. - breakpoint = target.BreakpointCreateBySourceRegex( - "// Set a breakpoint here to get started", self.main_spec) - self.assertTrue(breakpoint, VALID_BREAKPOINT) - - # Launch the process, and do not stop at the entry point. - process = target.LaunchSimple( - None, None, self.get_process_working_directory()) - - if not process: - self.fail("SBTarget.LaunchProcess() failed") - - if process.GetState() != lldb.eStateStopped: - self.fail("Process should be in the 'stopped' state, " - "instead the actual state is: '%s'" % - lldbutil.state_type_to_str(process.GetState())) - - self.thread = lldbutil.get_one_thread_stopped_at_breakpoint( - process, breakpoint) - self.assertIsNotNone( - self.thread, "Expected one thread to be stopped at the breakpoint") + (target, process, self.thread, bkpt) = lldbutil.run_to_source_breakpoint(self, + "// Set a breakpoint here to get started", self.main_spec) # Next set a breakpoint in this function, set up Expression options to stop on # breakpoint hits, and call the function. |