199451b44SJordan Rupprechtfrom lldbsuite.test.decorators import *
299451b44SJordan Rupprechtfrom lldbsuite.test.concurrent_base import ConcurrentEventsBase
399451b44SJordan Rupprechtfrom lldbsuite.test.lldbtest import TestBase
499451b44SJordan Rupprecht
599451b44SJordan Rupprecht
699451b44SJordan Rupprecht@skipIfWindows
799451b44SJordan Rupprechtclass ConcurrentCrashWithWatchpointBreakpointSignal(ConcurrentEventsBase):
899451b44SJordan Rupprecht    # Atomic sequences are not supported yet for MIPS in LLDB.
9*2238dcc3SJonas Devlieghere    @skipIf(triple="^mips")
1099451b44SJordan Rupprecht    @add_test_categories(["watchpoint"])
1199451b44SJordan Rupprecht    def test(self):
1299451b44SJordan Rupprecht        """Test a thread that crashes while other threads generate a signal and hit a watchpoint and breakpoint."""
13d7dbe2c4SPavel Labath        self.build()
14*2238dcc3SJonas Devlieghere        self.do_thread_actions(
15*2238dcc3SJonas Devlieghere            num_crash_threads=1,
1699451b44SJordan Rupprecht            num_breakpoint_threads=1,
1799451b44SJordan Rupprecht            num_signal_threads=1,
18*2238dcc3SJonas Devlieghere            num_watchpoint_threads=1,
19*2238dcc3SJonas Devlieghere        )
20