1
2import unittest2
3
4from lldbsuite.test.decorators import *
5from lldbsuite.test.concurrent_base import ConcurrentEventsBase
6from lldbsuite.test.lldbtest import TestBase
7
8
9@skipIfWindows
10class ConcurrentNWatchNBreak(ConcurrentEventsBase):
11
12    mydir = ConcurrentEventsBase.compute_mydir(__file__)
13
14    # Atomic sequences are not supported yet for MIPS in LLDB.
15    @skipIf(triple='^mips')
16    @expectedFailureAll(archs=["aarch64"], oslist=["freebsd"],
17                        bugnumber="llvm.org/pr49433")
18    @skipIf(
19        oslist=["ios", "watchos", "tvos", "bridgeos", "macosx"],
20        archs=['arm64', 'arm64e', 'arm64_32', 'arm'],
21        bugnumber="rdar://81811539")
22    @add_test_categories(["watchpoint"])
23    def test(self):
24        """Test with 5 watchpoint and breakpoint threads."""
25        self.build(dictionary=self.getBuildFlags())
26        self.do_thread_actions(num_watchpoint_threads=5,
27                               num_breakpoint_threads=5)
28