diff options
author | Jim Ingham <jingham@apple.com> | 2017-07-06 18:06:25 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2017-07-06 18:06:25 +0000 |
commit | 19c28eee46a5d6b13a7f8c5096c6efc1f603578c (patch) | |
tree | be45f6a1807d338038614c4f11550c60afdd73f0 /lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py | |
parent | c855615831d77ae8ca94df757a3f2cf605cb3e9f (diff) | |
download | bcm5719-llvm-19c28eee46a5d6b13a7f8c5096c6efc1f603578c.tar.gz bcm5719-llvm-19c28eee46a5d6b13a7f8c5096c6efc1f603578c.zip |
Working through testcases, converting to run_to_source_breakpoint.
llvm-svn: 307287
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py b/lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py index 0d1a17352a3..b4e9a8bfeab 100644 --- a/lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py +++ b/lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py @@ -37,25 +37,10 @@ class ExprOptionsTestCase(TestBase): # Set debugger into synchronous mode self.dbg.SetAsync(False) - # Create a target by the debugger. - target = self.dbg.CreateTarget(self.exe) - self.assertTrue(target, VALID_TARGET) + (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint( + self, '// breakpoint_in_main', self.main_source_spec) - # Set breakpoints inside main. - breakpoint = target.BreakpointCreateBySourceRegex( - '// breakpoint_in_main', self.main_source_spec) - self.assertTrue(breakpoint) - - # Now launch the process, and do not stop at entry point. - process = target.LaunchSimple( - None, None, self.get_process_working_directory()) - self.assertTrue(process, PROCESS_IS_VALID) - - threads = lldbutil.get_threads_stopped_at_breakpoint( - process, breakpoint) - self.assertEqual(len(threads), 1) - - frame = threads[0].GetFrameAtIndex(0) + frame = thread.GetFrameAtIndex(0) options = lldb.SBExpressionOptions() # test --language on C++ expression using the SB API's |