[libc][NFC] Remove extra ; in exhaustive_test.h. (#124216)
[llvm-project.git] / lldb / test / API / lang / c / step_over_no_deadlock / TestStepOverDoesntBlock.py
blob646818dac852e6f1342eec52284d2ee20c34bed1
1 """
2 Test that step over will let other threads run when necessary
3 """
5 import lldb
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."""
14 self.build()
15 (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
16 self,
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.
24 thread.StepOver()
25 state = process.GetState()
26 self.assertState(state, lldb.eStateStopped)