2 Test that step over will let other threads run when necessary
6 from lldbsuite
.test
.decorators
import *
7 from lldbsuite
.test
.lldbtest
import *
8 from lldbsuite
.test
import lldbutil
11 class StepOverDoesntDeadlockTestCase(TestBase
):
12 def test_step_over(self
):
13 """Test that when step over steps over a function it lets other threads run."""
15 (target
, process
, thread
, bkpt
) = lldbutil
.run_to_source_breakpoint(
17 "without running the first thread at least somewhat",
18 lldb
.SBFileSpec("locking.cpp"),
20 # This is just testing that the step over actually completes.
21 # If the test fails this step never return, so failure is really
22 # signaled by the test timing out.
25 state
= process
.GetState()
26 self
.assertState(state
, lldb
.eStateStopped
)