summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python
diff options
context:
space:
mode:
authorMohit K. Bhakkad <mohit.bhakkad@gmail.com>2016-04-18 05:27:42 +0000
committerMohit K. Bhakkad <mohit.bhakkad@gmail.com>2016-04-18 05:27:42 +0000
commit76a7ca0f67379705773c4d1da89e546667ff25f2 (patch)
tree5480413615503aeee114b445f2ca6b740b2631ae /lldb/packages/Python
parent28bba2aa318890bd15879d6c482251be49422cb2 (diff)
downloadbcm5719-llvm-76a7ca0f67379705773c4d1da89e546667ff25f2.tar.gz
bcm5719-llvm-76a7ca0f67379705773c4d1da89e546667ff25f2.zip
[LLDB][MIPS] Fix TestConcurrentEvents
Patch by Nitesh Jain Reviewers: clayborg Subscribers: jaydeep, bhushan, mohit.bhakkad, sagar Differential Revision: http://reviews.llvm.org/D18389 llvm-svn: 266589
Diffstat (limited to 'lldb/packages/Python')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py70
1 files changed, 35 insertions, 35 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py b/lldb/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
index 2de01e1e6ed..30adcccd203 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
@@ -30,28 +30,28 @@ class ConcurrentEventsTestCase(TestBase):
## Tests for multiple threads that generate a single event.
#
@unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_many_breakpoints(self):
"""Test 100 breakpoints from 100 threads."""
self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=100)
@unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_many_watchpoints(self):
"""Test 100 watchpoints from 100 threads."""
self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_watchpoint_threads=100)
@unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_many_signals(self):
"""Test 100 signals from 100 threads."""
self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_signal_threads=100)
@unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_many_crash(self):
"""Test 100 threads that cause a segfault."""
self.build(dictionary=self.getBuildFlags())
@@ -62,21 +62,21 @@ class ConcurrentEventsTestCase(TestBase):
## Tests for concurrent signal and breakpoint
#
@skipIfFreeBSD # timing out on buildbot
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_signal_break(self):
"""Test signal and a breakpoint in multiple threads."""
self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=1, num_signal_threads=1)
@skipIfFreeBSD # timing out on buildbot
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_delay_signal_break(self):
"""Test (1-second delay) signal and a breakpoint in multiple threads."""
self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=1, num_delay_signal_threads=1)
@skipIfFreeBSD # timing out on buildbot
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_signal_delay_break(self):
"""Test signal and a (1 second delay) breakpoint in multiple threads."""
self.build(dictionary=self.getBuildFlags())
@@ -88,7 +88,7 @@ class ConcurrentEventsTestCase(TestBase):
#
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_watch_break(self):
"""Test watchpoint and a breakpoint in multiple threads."""
self.build(dictionary=self.getBuildFlags())
@@ -96,7 +96,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_delay_watch_break(self):
"""Test (1-second delay) watchpoint and a breakpoint in multiple threads."""
self.build(dictionary=self.getBuildFlags())
@@ -104,7 +104,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_watch_break_delay(self):
"""Test watchpoint and a (1 second delay) breakpoint in multiple threads."""
self.build(dictionary=self.getBuildFlags())
@@ -115,7 +115,7 @@ class ConcurrentEventsTestCase(TestBase):
#
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_signal_watch(self):
"""Test a watchpoint and a signal in multiple threads."""
self.build(dictionary=self.getBuildFlags())
@@ -123,7 +123,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_delay_signal_watch(self):
"""Test a watchpoint and a (1 second delay) signal in multiple threads."""
self.build(dictionary=self.getBuildFlags())
@@ -131,7 +131,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_signal_delay_watch(self):
"""Test a (1 second delay) watchpoint and a signal in multiple threads."""
self.build(dictionary=self.getBuildFlags())
@@ -142,14 +142,14 @@ class ConcurrentEventsTestCase(TestBase):
## Tests for multiple breakpoint threads
#
@skipIfFreeBSD # timing out on buildbot
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_two_breakpoint_threads(self):
"""Test two threads that trigger a breakpoint. """
self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=2)
@skipIfFreeBSD # timing out on buildbot
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_breakpoint_one_delay_breakpoint_threads(self):
"""Test threads that trigger a breakpoint where one thread has a 1 second delay. """
self.build(dictionary=self.getBuildFlags())
@@ -157,14 +157,14 @@ class ConcurrentEventsTestCase(TestBase):
num_delay_breakpoint_threads=1)
@skipIfFreeBSD # timing out on buildbot
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_two_breakpoints_one_signal(self):
"""Test two threads that trigger a breakpoint and one signal thread. """
self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=2, num_signal_threads=1)
@skipIfFreeBSD # timing out on buildbot
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_breakpoint_delay_breakpoint_one_signal(self):
"""Test two threads that trigger a breakpoint (one with a 1 second delay) and one signal thread. """
self.build(dictionary=self.getBuildFlags())
@@ -173,7 +173,7 @@ class ConcurrentEventsTestCase(TestBase):
num_signal_threads=1)
@skipIfFreeBSD # timing out on buildbot
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_two_breakpoints_one_delay_signal(self):
"""Test two threads that trigger a breakpoint and one (1 second delay) signal thread. """
self.build(dictionary=self.getBuildFlags())
@@ -181,7 +181,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_two_breakpoints_one_watchpoint(self):
"""Test two threads that trigger a breakpoint and one watchpoint thread. """
self.build(dictionary=self.getBuildFlags())
@@ -189,7 +189,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_breakpoints_delayed_breakpoint_one_watchpoint(self):
"""Test a breakpoint, a delayed breakpoint, and one watchpoint thread. """
self.build(dictionary=self.getBuildFlags())
@@ -202,7 +202,7 @@ class ConcurrentEventsTestCase(TestBase):
#
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_two_watchpoint_threads(self):
"""Test two threads that trigger a watchpoint. """
self.build(dictionary=self.getBuildFlags())
@@ -210,7 +210,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_watchpoint_with_delay_watchpoint_threads(self):
"""Test two threads that trigger a watchpoint where one thread has a 1 second delay. """
self.build(dictionary=self.getBuildFlags())
@@ -219,7 +219,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_two_watchpoints_one_breakpoint(self):
"""Test two threads that trigger a watchpoint and one breakpoint thread. """
self.build(dictionary=self.getBuildFlags())
@@ -227,7 +227,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_two_watchpoints_one_delay_breakpoint(self):
"""Test two threads that trigger a watchpoint and one (1 second delay) breakpoint thread. """
self.build(dictionary=self.getBuildFlags())
@@ -235,7 +235,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_watchpoint_delay_watchpoint_one_breakpoint(self):
"""Test two threads that trigger a watchpoint (one with a 1 second delay) and one breakpoint thread. """
self.build(dictionary=self.getBuildFlags())
@@ -245,7 +245,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_two_watchpoints_one_signal(self):
"""Test two threads that trigger a watchpoint and one signal thread. """
self.build(dictionary=self.getBuildFlags())
@@ -256,7 +256,7 @@ class ConcurrentEventsTestCase(TestBase):
#
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_signal_watch_break(self):
"""Test a signal/watchpoint/breakpoint in multiple threads."""
self.build(dictionary=self.getBuildFlags())
@@ -266,7 +266,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_signal_watch_break(self):
"""Test one signal thread with 5 watchpoint and breakpoint threads."""
self.build(dictionary=self.getBuildFlags())
@@ -276,7 +276,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_signal_watch_break(self):
"""Test with 5 watchpoint and breakpoint threads."""
self.build(dictionary=self.getBuildFlags())
@@ -288,7 +288,7 @@ class ConcurrentEventsTestCase(TestBase):
## Test for crashing threads happening concurrently with other events
#
@skipIfFreeBSD # timing out on buildbot
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_crash_with_break(self):
""" Test a thread that crashes while another thread hits a breakpoint."""
self.build(dictionary=self.getBuildFlags())
@@ -296,14 +296,14 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_crash_with_watchpoint(self):
""" Test a thread that crashes while another thread hits a watchpoint."""
self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_crash_threads=1, num_watchpoint_threads=1)
@skipIfFreeBSD # timing out on buildbot
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_crash_with_signal(self):
""" Test a thread that crashes while another thread generates a signal."""
self.build(dictionary=self.getBuildFlags())
@@ -311,7 +311,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_crash_with_watchpoint_breakpoint_signal(self):
""" Test a thread that crashes while other threads generate a signal and hit a watchpoint and breakpoint. """
self.build(dictionary=self.getBuildFlags())
@@ -322,7 +322,7 @@ class ConcurrentEventsTestCase(TestBase):
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_delayed_crash_with_breakpoint_watchpoint(self):
""" Test a thread with a delayed crash while other threads hit a watchpoint and a breakpoint. """
self.build(dictionary=self.getBuildFlags())
@@ -331,7 +331,7 @@ class ConcurrentEventsTestCase(TestBase):
num_watchpoint_threads=1)
@skipIfFreeBSD # timing out on buildbot
- @expectedFailureAll(archs=['mips64', 'mips64el']) # Atomic sequences are not supported yet for MIPS in LLDB.
+ @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
def test_delayed_crash_with_breakpoint_signal(self):
""" Test a thread with a delayed crash while other threads generate a signal and hit a breakpoint. """
self.build(dictionary=self.getBuildFlags())
OpenPOWER on IntegriCloud