]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentDelayedCrashWithBreakpointWatchpoint.py
Vendor import of lldb trunk r321530:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / functionalities / thread / concurrent_events / TestConcurrentDelayedCrashWithBreakpointWatchpoint.py
1 from __future__ import print_function
2
3 import unittest2
4
5 from lldbsuite.test.decorators import *
6 from lldbsuite.test.concurrent_base import ConcurrentEventsBase
7 from lldbsuite.test.lldbtest import TestBase
8
9
10 @skipIfWindows
11 class ConcurrentDelayedCrashWithBreakpointWatchpoint(ConcurrentEventsBase):
12
13     mydir = ConcurrentEventsBase.compute_mydir(__file__)
14
15     @skipIfFreeBSD  # timing out on buildbot
16     # Atomic sequences are not supported yet for MIPS in LLDB.
17     @skipIf(triple='^mips')
18     @add_test_categories(["watchpoint"])
19     def test(self):
20         """ Test a thread with a delayed crash while other threads hit a watchpoint and a breakpoint. """
21         self.build(dictionary=self.getBuildFlags())
22         self.do_thread_actions(num_delay_crash_threads=1,
23                                num_breakpoint_threads=1,
24                                num_watchpoint_threads=1)