2016-07-22 21:50:55 +00:00
|
|
|
|
|
|
|
|
import unittest2
|
|
|
|
|
|
|
|
|
|
from lldbsuite.test.decorators import *
|
|
|
|
|
from lldbsuite.test.concurrent_base import ConcurrentEventsBase
|
|
|
|
|
from lldbsuite.test.lldbtest import TestBase
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@skipIfWindows
|
|
|
|
|
class ConcurrentTwoWatchpointThreads(ConcurrentEventsBase):
|
|
|
|
|
|
|
|
|
|
mydir = ConcurrentEventsBase.compute_mydir(__file__)
|
|
|
|
|
|
|
|
|
|
@skipIfFreeBSD # timing out on buildbot
|
|
|
|
|
# Atomic sequences are not supported yet for MIPS in LLDB.
|
2016-10-10 10:02:09 +00:00
|
|
|
@skipIf(triple='^mips')
|
2017-10-31 15:27:19 +00:00
|
|
|
@add_test_categories(["watchpoint"])
|
2016-10-24 16:20:43 +00:00
|
|
|
def test(self):
|
2016-07-22 21:50:55 +00:00
|
|
|
"""Test two threads that trigger a watchpoint. """
|
|
|
|
|
self.build(dictionary=self.getBuildFlags())
|
|
|
|
|
self.do_thread_actions(num_watchpoint_threads=2)
|