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/timeout/TestCallWithTimeout.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/timeout/TestCallWithTimeout.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/expression_command/timeout/TestCallWithTimeout.py | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/timeout/TestCallWithTimeout.py b/lldb/packages/Python/lldbsuite/test/expression_command/timeout/TestCallWithTimeout.py index 29c03b1d7ef..7862477001e 100644 --- a/lldb/packages/Python/lldbsuite/test/expression_command/timeout/TestCallWithTimeout.py +++ b/lldb/packages/Python/lldbsuite/test/expression_command/timeout/TestCallWithTimeout.py @@ -25,36 +25,14 @@ class ExprCommandWithTimeoutsTestCase(TestBase): @expectedFlakeyFreeBSD("llvm.org/pr19605") @expectedFailureAll( oslist=[ - "windows", - "macosx"], + "windows"], bugnumber="llvm.org/pr21765") def test(self): """Test calling std::String member function.""" self.build() - exe_name = "a.out" - exe = os.path.join(os.getcwd(), exe_name) - - target = self.dbg.CreateTarget(exe) - self.assertTrue(target, VALID_TARGET) - - breakpoint = target.BreakpointCreateBySourceRegex( - 'stop here in main.', self.main_source_spec) - self.assertTrue(breakpoint, VALID_BREAKPOINT) - self.runCmd("breakpoint list") - - # Launch the process, and do not stop at the entry point. - process = target.LaunchSimple( - None, None, self.get_process_working_directory()) - - self.assertTrue(process, PROCESS_IS_VALID) - - # Frame #0 should be on self.step_out_of_malloc. - threads = lldbutil.get_threads_stopped_at_breakpoint( - process, breakpoint) - - self.assertTrue(len(threads) == 1) - thread = threads[0] + (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint( + self, 'stop here in main.', self.main_source_spec) # First set the timeout too short, and make sure we fail. options = lldb.SBExpressionOptions() |