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 ConcurrentTwoBreakpointsOneSignal(ConcurrentEventsBase):
|
|
|
|
|
|
|
|
|
|
mydir = ConcurrentEventsBase.compute_mydir(__file__)
|
|
|
|
|
|
|
|
|
|
# Atomic sequences are not supported yet for MIPS in LLDB.
|
2016-10-10 10:02:09 +00:00
|
|
|
@skipIf(triple='^mips')
|
2020-12-20 11:32:19 +01:00
|
|
|
@expectedFlakeyNetBSD
|
2021-03-03 15:57:51 +01:00
|
|
|
@expectedFailureAll(archs=["aarch64"], oslist=["freebsd"],
|
|
|
|
|
bugnumber="llvm.org/pr49433")
|
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 breakpoint and one signal thread. """
|
2021-12-30 11:22:26 +01:00
|
|
|
self.build()
|
2016-07-22 21:50:55 +00:00
|
|
|
self.do_thread_actions(num_breakpoint_threads=2, num_signal_threads=1)
|