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 ConcurrentWatchBreak(ConcurrentEventsBase):
11
12    # Atomic sequences are not supported yet for MIPS in LLDB.
13    @skipIf(triple='^mips')
14    @add_test_categories(["watchpoint"])
15    @skipIf(
16    oslist=["ios", "watchos", "tvos", "bridgeos", "macosx"],
17    archs=['arm64', 'arm64e', 'arm64_32', 'arm'],
18    bugnumber="rdar://93863107")
19
20    def test(self):
21        """Test watchpoint and a breakpoint in multiple threads."""
22        self.build()
23        self.do_thread_actions(
24            num_breakpoint_threads=1,
25            num_watchpoint_threads=1)
26