xref: /llvm-project/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentNWatchNBreak.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
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 ConcurrentNWatchNBreak(ConcurrentEventsBase):
899451b44SJordan Rupprecht    # Atomic sequences are not supported yet for MIPS in LLDB.
9*2238dcc3SJonas Devlieghere    @skipIf(triple="^mips")
10*2238dcc3SJonas Devlieghere    @expectedFailureAll(
11*2238dcc3SJonas Devlieghere        archs=["aarch64"], oslist=["freebsd"], bugnumber="llvm.org/pr49433"
12*2238dcc3SJonas Devlieghere    )
1399451b44SJordan Rupprecht    @add_test_categories(["watchpoint"])
1499451b44SJordan Rupprecht    def test(self):
1599451b44SJordan Rupprecht        """Test with 5 watchpoint and breakpoint threads."""
16d7dbe2c4SPavel Labath        self.build()
17*2238dcc3SJonas Devlieghere        self.do_thread_actions(num_watchpoint_threads=5, num_breakpoint_threads=5)
18