Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / functionalities / step-vrs-interrupt / TestStepVrsInterruptTimeout.py
blob3c79d832fd1b3a99ed4e6bffa17c0ef49922b8c4
1 """
2 This is to make sure that the interrupt timer
3 doesn't influence synchronous user level stepping.
4 """
6 import lldb
7 import lldbsuite.test.lldbutil as lldbutil
8 from lldbsuite.test.lldbtest import *
11 class TestStepVrsInterruptTimeout(TestBase):
12 NO_DEBUG_INFO_TESTCASE = True
14 def test_step_vrs_interrupt(self):
15 """This test is to make sure that the interrupt timeout
16 doesn't cause use to flub events from a synchronous step."""
17 self.build()
18 self.main_source_file = lldb.SBFileSpec("main.cpp")
19 self.sample_test()
21 def sample_test(self):
22 """You might use the test implementation in several ways, say so here."""
24 # This function starts a process, "a.out" by default, sets a source
25 # breakpoint, runs to it, and returns the thread, process & target.
26 # It optionally takes an SBLaunchOption argument if you want to pass
27 # arguments or environment variables.
28 (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
29 self, "Set a breakpoint here", self.main_source_file
31 self.dbg.SetAsync(False)
32 self.runCmd("settings set target.process.interrupt-timeout 1")
33 thread.StepOver()
34 self.assertState(
35 process.GetState(), lldb.eStateStopped, "Stopped like we should"