[Lldb-commits] [lldb] r276478 - Breakup TestConcurrentEvents.py into separate test subdirs per test method

Todd Fiala via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 22 14:50:56 PDT 2016


Author: tfiala
Date: Fri Jul 22 16:50:55 2016
New Revision: 276478

URL: http://llvm.org/viewvc/llvm-project?rev=276478&view=rev
Log:
Breakup TestConcurrentEvents.py into separate test subdirs per test method

This change breaks up the monolithic TestConcurrentEvents.py into a
separate subdir per test method. This allows them to run concurrently,
reduces the chance of a timeout occurring during normal operation, and
allows us to home in on any test methods that may be locking up.

This is step one in the process of squashing timeouts in these test
methods.

The reason for breaking each test method into its own file is to make it
very clear to us if there are a subset of the tests that do in fact lock
up frequently. This will limit how much hunting we need to do to
recreate it.

The reason for putting each file in a separate subdirectory is so that
our concurrent test runner can run multiple test files at the same time.
The unit of serialization in the LLDB test suite is the test directory,
so moving them into separate directories enables the test runner to do
more at the same time.

This change introduces usage of VPATH from gnu make. I use that to
facilitate keeping a single copy of the main.cpp in the parent
concurrent_events directory. Initially I had tried specifying the source
file as ../main.cpp, but our current makefile rules get confused by that
and then also build the output into the parent directory, which defeats
the ability to run each of the test methods concurrently. In the event
that not all systems support VPATH, I can do a bit of surgery on the
Makefile rules and attempt to make it smarter with regards to relative
paths to source files used in the build.

Added:
    lldb/trunk/packages/Python/lldbsuite/test/concurrent_base.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_delay_breakpoint_one_signal/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_delay_breakpoint_one_signal/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_delay_breakpoint_one_signal/TestConcurrentBreakpointDelayBreakpointOneSignal.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_one_delay_breakpoint_threads/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_one_delay_breakpoint_threads/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_one_delay_breakpoint_threads/TestConcurrentBreakpointOneDelayBreakpointThreads.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoints_delayed_breakpoint_one_watchpoint/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoints_delayed_breakpoint_one_watchpoint/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoints_delayed_breakpoint_one_watchpoint/TestConcurrentBreakpointsDelayedBreakpointOneWatchpoint.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_break/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_break/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_break/TestConcurrentCrashWithBreak.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_signal/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_signal/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_signal/TestConcurrentCrashWithSignal.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint/TestConcurrentCrashWithWatchpoint.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint_breakpoint_signal/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint_breakpoint_signal/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint_breakpoint_signal/TestConcurrentCrashWithWatchpointBreakpointSignal.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_break/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_break/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_break/TestConcurrentDelaySignalBreak.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_watch/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_watch/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_watch/TestConcurrentDelaySignalWatch.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_watch_break/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_watch_break/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_watch_break/TestConcurrentDelayWatchBreak.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_signal/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_signal/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_signal/TestConcurrentDelayedCrashWithBreakpointSignal.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_watchpoint/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_watchpoint/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_watchpoint/TestConcurrentDelayedCrashWithBreakpointWatchpoint.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_breakpoints/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_breakpoints/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_breakpoints/TestConcurrentManyBreakpoints.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_crash/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_crash/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_crash/TestConcurrentManyCrash.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_signals/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_signals/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_signals/TestConcurrentManySignals.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_watchpoints/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_watchpoints/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_watchpoints/TestConcurrentManyWatchpoints.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/n_watch_n_break/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/n_watch_n_break/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/n_watch_n_break/TestConcurrentNWatchNBreak.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_break/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_break/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_break/TestConcurrentSignalBreak.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_break/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_break/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_break/TestConcurrentSignalDelayBreak.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_watch/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_watch/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_watch/TestConcurrentSignalDelayWatch.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_n_watch_n_break/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_n_watch_n_break/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_n_watch_n_break/TestConcurrentSignalNWatchNBreak.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch/TestConcurrentSignalWatch.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch_break/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch_break/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch_break/TestConcurrentSignalWatchBreak.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoint_threads/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoint_threads/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoint_threads/TestConcurrentTwoBreakpointThreads.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_delay_signal/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_delay_signal/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_delay_signal/TestConcurrentTwoBreakpointsOneDelaySignal.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_signal/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_signal/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_signal/TestConcurrentTwoBreakpointsOneSignal.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_watchpoint/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_watchpoint/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_watchpoint/TestConcurrentTwoBreakpointsOneWatchpoint.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoint_threads/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoint_threads/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoint_threads/TestConcurrentTwoWatchpointThreads.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_breakpoint/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_breakpoint/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_breakpoint/TestConcurrentTwoWatchpointsOneBreakpoint.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_delay_breakpoint/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_delay_breakpoint/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_delay_breakpoint/TestConcurrentTwoWatchpointsOneDelayBreakpoint.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_signal/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_signal/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_signal/TestConcurrentTwoWatchpointsOneSignal.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break/TestConcurrentWatchBreak.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break_delay/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break_delay/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break_delay/TestConcurrentWatchBreakDelay.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_delay_watchpoint_one_breakpoint/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_delay_watchpoint_one_breakpoint/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_delay_watchpoint_one_breakpoint/TestConcurrentWatchpointDelayWatchpointOneBreakpoint.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_with_delay_watchpoint_threads/
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_with_delay_watchpoint_threads/Makefile
      - copied, changed from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_with_delay_watchpoint_threads/TestConcurrentWatchpointWithDelayWatchpointThreads.py
Removed:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py

Added: lldb/trunk/packages/Python/lldbsuite/test/concurrent_base.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/concurrent_base.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/concurrent_base.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/concurrent_base.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,216 @@
+"""
+A stress-test of sorts for LLDB's handling of threads in the inferior.
+
+This test sets a breakpoint in the main thread where test parameters (numbers of
+threads) can be adjusted, runs the inferior to that point, and modifies the
+locals that control the event thread counts. This test also sets a breakpoint in
+breakpoint_func (the function executed by each 'breakpoint' thread) and a
+watchpoint on a global modified in watchpoint_func. The inferior is continued
+until exit or a crash takes place, and the number of events seen by LLDB is
+verified to match the expected number of events.
+"""
+
+from __future__ import print_function
+
+
+
+import unittest2
+import os, time
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil
+
+class ConcurrentEventsBase(TestBase):
+
+    # Concurrency is the primary test factor here, not debug info variants.
+    NO_DEBUG_INFO_TESTCASE = True
+
+    def setUp(self):
+        # Call super's setUp().
+        super(ConcurrentEventsBase, self).setUp()
+        # Find the line number for our breakpoint.
+        self.filename = 'main.cpp'
+        source_relpath = os.path.join(os.path.pardir, self.filename)
+        self.thread_breakpoint_line = line_number(
+            source_relpath, '// Set breakpoint here')
+        self.setup_breakpoint_line = line_number(
+            source_relpath, '// Break here and adjust num')
+        self.finish_breakpoint_line = line_number(
+            source_relpath, '// Break here and verify one thread is active')
+
+    def describe_threads(self):
+        ret = []
+        for x in self.inferior_process:
+            id = x.GetIndexID()
+            reason = x.GetStopReason()
+            status = "stopped" if x.IsStopped() else "running"
+            reason_str = lldbutil.stop_reason_to_str(reason)
+            if reason == lldb.eStopReasonBreakpoint:
+                bpid = x.GetStopReasonDataAtIndex(0)
+                bp = self.inferior_target.FindBreakpointByID(bpid)
+                reason_str = "%s hit %d times" % (lldbutil.get_description(bp), bp.GetHitCount())
+            elif reason == lldb.eStopReasonWatchpoint:
+                watchid = x.GetStopReasonDataAtIndex(0)
+                watch = self.inferior_target.FindWatchpointByID(watchid)
+                reason_str = "%s hit %d times" % (lldbutil.get_description(watch), watch.GetHitCount())
+            elif reason == lldb.eStopReasonSignal:
+                signals = self.inferior_process.GetUnixSignals()
+                signal_name = signals.GetSignalAsCString(x.GetStopReasonDataAtIndex(0))
+                reason_str = "signal %s" % signal_name
+
+            location = "\t".join([lldbutil.get_description(x.GetFrameAtIndex(i)) for i in range(x.GetNumFrames())])
+            ret.append("thread %d %s due to %s at\n\t%s" % (id, status, reason_str, location))
+        return ret
+
+    def add_breakpoint(self, line, descriptions):
+        """ Adds a breakpoint at self.filename:line and appends its description to descriptions, and
+            returns the LLDB SBBreakpoint object.
+        """
+
+        bpno = lldbutil.run_break_set_by_file_and_line(self, self.filename, line, num_expected_locations=-1)
+        bp = self.inferior_target.FindBreakpointByID(bpno)
+        descriptions.append(": file = 'main.cpp', line = %d" % self.finish_breakpoint_line)
+        return bp
+
+    def inferior_done(self):
+        """ Returns true if the inferior is done executing all the event threads (and is stopped at self.finish_breakpoint, 
+            or has terminated execution.
+        """
+        return self.finish_breakpoint.GetHitCount() > 0 or \
+                self.crash_count > 0 or \
+                self.inferior_process.GetState() == lldb.eStateExited
+
+    def count_signaled_threads(self):
+        count = 0
+        for thread in self.inferior_process:
+            if thread.GetStopReason() == lldb.eStopReasonSignal and thread.GetStopReasonDataAtIndex(0) == self.inferior_process.GetUnixSignals().GetSignalNumberFromName('SIGUSR1'):
+                count += 1
+        return count
+
+    def do_thread_actions(self,
+                          num_breakpoint_threads = 0,
+                          num_signal_threads = 0,
+                          num_watchpoint_threads = 0,
+                          num_crash_threads = 0,
+                          num_delay_breakpoint_threads = 0,
+                          num_delay_signal_threads = 0,
+                          num_delay_watchpoint_threads = 0,
+                          num_delay_crash_threads = 0):
+        """ Sets a breakpoint in the main thread where test parameters (numbers of threads) can be adjusted, runs the inferior
+            to that point, and modifies the locals that control the event thread counts. Also sets a breakpoint in
+            breakpoint_func (the function executed by each 'breakpoint' thread) and a watchpoint on a global modified in
+            watchpoint_func. The inferior is continued until exit or a crash takes place, and the number of events seen by LLDB
+            is verified to match the expected number of events.
+        """
+        exe = os.path.join(os.getcwd(), "a.out")
+        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
+
+        # Get the target
+        self.inferior_target = self.dbg.GetSelectedTarget()
+
+        expected_bps = []
+
+        # Initialize all the breakpoints (main thread/aux thread)
+        self.setup_breakpoint = self.add_breakpoint(self.setup_breakpoint_line, expected_bps)
+        self.finish_breakpoint = self.add_breakpoint(self.finish_breakpoint_line, expected_bps)
+
+        # Set the thread breakpoint
+        if num_breakpoint_threads + num_delay_breakpoint_threads > 0:
+            self.thread_breakpoint = self.add_breakpoint(self.thread_breakpoint_line, expected_bps)
+
+        # Verify breakpoints
+        self.expect("breakpoint list -f", "Breakpoint locations shown correctly", substrs = expected_bps)
+
+        # Run the program.
+        self.runCmd("run", RUN_SUCCEEDED)
+
+        # Check we are at line self.setup_breakpoint
+        self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT,
+            substrs = ["stop reason = breakpoint 1."])
+
+        # Initialize the (single) watchpoint on the global variable (g_watchme)
+        if num_watchpoint_threads + num_delay_watchpoint_threads > 0:
+            self.runCmd("watchpoint set variable g_watchme")
+            for w in self.inferior_target.watchpoint_iter():
+                self.thread_watchpoint = w
+                self.assertTrue("g_watchme" in str(self.thread_watchpoint), "Watchpoint location not shown correctly")
+
+        # Get the process
+        self.inferior_process = self.inferior_target.GetProcess()
+
+        # We should be stopped at the setup site where we can set the number of
+        # threads doing each action (break/crash/signal/watch)
+        self.assertEqual(self.inferior_process.GetNumThreads(), 1, 'Expected to stop before any additional threads are spawned.')
+
+        self.runCmd("expr num_breakpoint_threads=%d" % num_breakpoint_threads)
+        self.runCmd("expr num_crash_threads=%d" % num_crash_threads)
+        self.runCmd("expr num_signal_threads=%d" % num_signal_threads)
+        self.runCmd("expr num_watchpoint_threads=%d" % num_watchpoint_threads)
+
+        self.runCmd("expr num_delay_breakpoint_threads=%d" % num_delay_breakpoint_threads)
+        self.runCmd("expr num_delay_crash_threads=%d" % num_delay_crash_threads)
+        self.runCmd("expr num_delay_signal_threads=%d" % num_delay_signal_threads)
+        self.runCmd("expr num_delay_watchpoint_threads=%d" % num_delay_watchpoint_threads)
+
+        # Continue the inferior so threads are spawned
+        self.runCmd("continue")
+
+        # Make sure we see all the threads. The inferior program's threads all synchronize with a pseudo-barrier; that is,
+        # the inferior program ensures all threads are started and running before any thread triggers its 'event'.
+        num_threads = self.inferior_process.GetNumThreads()
+        expected_num_threads = num_breakpoint_threads + num_delay_breakpoint_threads \
+                             + num_signal_threads + num_delay_signal_threads \
+                             + num_watchpoint_threads + num_delay_watchpoint_threads \
+                             + num_crash_threads + num_delay_crash_threads + 1
+        self.assertEqual(num_threads, expected_num_threads,
+            'Expected to see %d threads, but seeing %d. Details:\n%s' % (expected_num_threads,
+                                                                         num_threads,
+                                                                         "\n\t".join(self.describe_threads())))
+
+        self.signal_count = self.count_signaled_threads()
+        self.crash_count = len(lldbutil.get_crashed_threads(self, self.inferior_process))
+
+        # Run to completion (or crash)
+        while not self.inferior_done(): 
+            if self.TraceOn():
+                self.runCmd("thread backtrace all")
+            self.runCmd("continue")
+            self.signal_count += self.count_signaled_threads()
+            self.crash_count += len(lldbutil.get_crashed_threads(self, self.inferior_process))
+
+        if num_crash_threads > 0 or num_delay_crash_threads > 0:
+            # Expecting a crash
+            self.assertTrue(self.crash_count > 0,
+                "Expecting at least one thread to crash. Details: %s" % "\t\n".join(self.describe_threads()))
+
+            # Ensure the zombie process is reaped
+            self.runCmd("process kill")
+
+        elif num_crash_threads == 0 and num_delay_crash_threads == 0:
+            # There should be a single active thread (the main one) which hit the breakpoint after joining
+            self.assertEqual(1, self.finish_breakpoint.GetHitCount(), "Expected main thread (finish) breakpoint to be hit once")
+
+            num_threads = self.inferior_process.GetNumThreads()
+            self.assertEqual(1, num_threads, "Expecting 1 thread but seeing %d. Details:%s" % (num_threads,
+                                                                                             "\n\t".join(self.describe_threads())))
+            self.runCmd("continue")
+
+            # The inferior process should have exited without crashing
+            self.assertEqual(0, self.crash_count, "Unexpected thread(s) in crashed state")
+            self.assertEqual(self.inferior_process.GetState(), lldb.eStateExited, PROCESS_EXITED)
+
+            # Verify the number of actions took place matches expected numbers
+            expected_breakpoint_threads = num_delay_breakpoint_threads + num_breakpoint_threads
+            breakpoint_hit_count = self.thread_breakpoint.GetHitCount() if expected_breakpoint_threads > 0 else 0
+            self.assertEqual(expected_breakpoint_threads, breakpoint_hit_count,
+                "Expected %d breakpoint hits, but got %d" % (expected_breakpoint_threads, breakpoint_hit_count))
+
+            expected_signal_threads = num_delay_signal_threads + num_signal_threads
+            self.assertEqual(expected_signal_threads, self.signal_count,
+                "Expected %d stops due to signal delivery, but got %d" % (expected_signal_threads, self.signal_count))
+
+            expected_watchpoint_threads = num_delay_watchpoint_threads + num_watchpoint_threads
+            watchpoint_hit_count = self.thread_watchpoint.GetHitCount() if expected_watchpoint_threads > 0 else 0
+            self.assertEqual(expected_watchpoint_threads, watchpoint_hit_count,
+                "Expected %d watchpoint hits, got %d" % (expected_watchpoint_threads, watchpoint_hit_count))

Removed: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile?rev=276477&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (removed)
@@ -1,7 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-ENABLE_THREADS := YES
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py?rev=276477&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py (removed)
@@ -1,525 +0,0 @@
-"""
-A stress-test of sorts for LLDB's handling of threads in the inferior.
-
-This test sets a breakpoint in the main thread where test parameters (numbers of
-threads) can be adjusted, runs the inferior to that point, and modifies the
-locals that control the event thread counts. This test also sets a breakpoint in
-breakpoint_func (the function executed by each 'breakpoint' thread) and a
-watchpoint on a global modified in watchpoint_func. The inferior is continued
-until exit or a crash takes place, and the number of events seen by LLDB is
-verified to match the expected number of events.
-"""
-
-from __future__ import print_function
-
-
-
-import unittest2
-import os, time
-import lldb
-from lldbsuite.test.decorators import *
-from lldbsuite.test.lldbtest import *
-from lldbsuite.test import lldbutil
-
- at skipIfWindows
-class ConcurrentEventsTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    #
-    ## Tests for multiple threads that generate a single event.
-    #
-    @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
-    @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(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(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(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())
-        self.do_thread_actions(num_crash_threads=100)
-
-
-    #
-    ## Tests for concurrent signal and breakpoint
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    @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(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(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())
-        self.do_thread_actions(num_delay_breakpoint_threads=1, num_signal_threads=1)
-
-
-    #
-    ## Tests for concurrent watchpoint and breakpoint
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_breakpoint_threads=1, num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_breakpoint_threads=1, num_delay_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_delay_breakpoint_threads=1, num_watchpoint_threads=1)
-
-    #
-    ## Tests for concurrent signal and watchpoint
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_signal_threads=1, num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_delay_signal_threads=1, num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_signal_threads=1, num_delay_watchpoint_threads=1)
-
-
-    #
-    ## Tests for multiple breakpoint threads
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    @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(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())
-        self.do_thread_actions(num_breakpoint_threads=1,
-                               num_delay_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @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(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())
-        self.do_thread_actions(num_breakpoint_threads=1,
-                               num_delay_breakpoint_threads=1,
-                               num_signal_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @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())
-        self.do_thread_actions(num_breakpoint_threads=2, num_delay_signal_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_breakpoint_threads=2, num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_breakpoint_threads=1,
-                               num_delay_breakpoint_threads=1,
-                               num_watchpoint_threads=1)
-
-    #
-    ## Tests for multiple watchpoint threads
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_watchpoint_threads=2)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_watchpoint_threads=1,
-                               num_delay_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_watchpoint_threads=2, num_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_watchpoint_threads=2, num_delay_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_watchpoint_threads=1,
-                               num_delay_watchpoint_threads=1,
-                               num_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_watchpoint_threads=2, num_signal_threads=1)
-
-    #
-    ## Test for watchpoint, signal and breakpoint happening concurrently
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_signal_threads=1,
-                               num_watchpoint_threads=1,
-                               num_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_signal_threads=1,
-                               num_watchpoint_threads=5,
-                               num_breakpoint_threads=5)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_watchpoint_threads=5,
-                               num_breakpoint_threads=5)
-
-
-    #
-    ## Test for crashing threads happening concurrently with other events
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    @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())
-        self.do_thread_actions(num_crash_threads=1, num_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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(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())
-        self.do_thread_actions(num_crash_threads=1, num_signal_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_crash_threads=1,
-                               num_breakpoint_threads=1,
-                               num_signal_threads=1,
-                               num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @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())
-        self.do_thread_actions(num_delay_crash_threads=1,
-                               num_breakpoint_threads=1,
-                               num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @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())
-        self.do_thread_actions(num_delay_crash_threads=1,
-                               num_breakpoint_threads=1,
-                               num_signal_threads=1)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number for our breakpoint.
-        self.filename = 'main.cpp'
-        self.thread_breakpoint_line = line_number(self.filename, '// Set breakpoint here')
-        self.setup_breakpoint_line = line_number(self.filename, '// Break here and adjust num')
-        self.finish_breakpoint_line = line_number(self.filename, '// Break here and verify one thread is active')
-
-    def describe_threads(self):
-        ret = []
-        for x in self.inferior_process:
-            id = x.GetIndexID()
-            reason = x.GetStopReason()
-            status = "stopped" if x.IsStopped() else "running"
-            reason_str = lldbutil.stop_reason_to_str(reason)
-            if reason == lldb.eStopReasonBreakpoint:
-                bpid = x.GetStopReasonDataAtIndex(0)
-                bp = self.inferior_target.FindBreakpointByID(bpid)
-                reason_str = "%s hit %d times" % (lldbutil.get_description(bp), bp.GetHitCount())
-            elif reason == lldb.eStopReasonWatchpoint:
-                watchid = x.GetStopReasonDataAtIndex(0)
-                watch = self.inferior_target.FindWatchpointByID(watchid)
-                reason_str = "%s hit %d times" % (lldbutil.get_description(watch), watch.GetHitCount())
-            elif reason == lldb.eStopReasonSignal:
-                signals = self.inferior_process.GetUnixSignals()
-                signal_name = signals.GetSignalAsCString(x.GetStopReasonDataAtIndex(0))
-                reason_str = "signal %s" % signal_name
-
-            location = "\t".join([lldbutil.get_description(x.GetFrameAtIndex(i)) for i in range(x.GetNumFrames())])
-            ret.append("thread %d %s due to %s at\n\t%s" % (id, status, reason_str, location))
-        return ret
-
-    def add_breakpoint(self, line, descriptions):
-        """ Adds a breakpoint at self.filename:line and appends its description to descriptions, and
-            returns the LLDB SBBreakpoint object.
-        """
-
-        bpno = lldbutil.run_break_set_by_file_and_line(self, self.filename, line, num_expected_locations=-1)
-        bp = self.inferior_target.FindBreakpointByID(bpno)
-        descriptions.append(": file = 'main.cpp', line = %d" % self.finish_breakpoint_line)
-        return bp
-
-    def inferior_done(self):
-        """ Returns true if the inferior is done executing all the event threads (and is stopped at self.finish_breakpoint, 
-            or has terminated execution.
-        """
-        return self.finish_breakpoint.GetHitCount() > 0 or \
-                self.crash_count > 0 or \
-                self.inferior_process.GetState() == lldb.eStateExited
-
-    def count_signaled_threads(self):
-        count = 0
-        for thread in self.inferior_process:
-            if thread.GetStopReason() == lldb.eStopReasonSignal and thread.GetStopReasonDataAtIndex(0) == self.inferior_process.GetUnixSignals().GetSignalNumberFromName('SIGUSR1'):
-                count += 1
-        return count
-
-    def do_thread_actions(self,
-                          num_breakpoint_threads = 0,
-                          num_signal_threads = 0,
-                          num_watchpoint_threads = 0,
-                          num_crash_threads = 0,
-                          num_delay_breakpoint_threads = 0,
-                          num_delay_signal_threads = 0,
-                          num_delay_watchpoint_threads = 0,
-                          num_delay_crash_threads = 0):
-        """ Sets a breakpoint in the main thread where test parameters (numbers of threads) can be adjusted, runs the inferior
-            to that point, and modifies the locals that control the event thread counts. Also sets a breakpoint in
-            breakpoint_func (the function executed by each 'breakpoint' thread) and a watchpoint on a global modified in
-            watchpoint_func. The inferior is continued until exit or a crash takes place, and the number of events seen by LLDB
-            is verified to match the expected number of events.
-        """
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Get the target
-        self.inferior_target = self.dbg.GetSelectedTarget()
-
-        expected_bps = []
-
-        # Initialize all the breakpoints (main thread/aux thread)
-        self.setup_breakpoint = self.add_breakpoint(self.setup_breakpoint_line, expected_bps)
-        self.finish_breakpoint = self.add_breakpoint(self.finish_breakpoint_line, expected_bps)
-
-        # Set the thread breakpoint
-        if num_breakpoint_threads + num_delay_breakpoint_threads > 0:
-            self.thread_breakpoint = self.add_breakpoint(self.thread_breakpoint_line, expected_bps)
-
-        # Verify breakpoints
-        self.expect("breakpoint list -f", "Breakpoint locations shown correctly", substrs = expected_bps)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # Check we are at line self.setup_breakpoint
-        self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ["stop reason = breakpoint 1."])
-
-        # Initialize the (single) watchpoint on the global variable (g_watchme)
-        if num_watchpoint_threads + num_delay_watchpoint_threads > 0:
-            self.runCmd("watchpoint set variable g_watchme")
-            for w in self.inferior_target.watchpoint_iter():
-                self.thread_watchpoint = w
-                self.assertTrue("g_watchme" in str(self.thread_watchpoint), "Watchpoint location not shown correctly")
-
-        # Get the process
-        self.inferior_process = self.inferior_target.GetProcess()
-
-        # We should be stopped at the setup site where we can set the number of
-        # threads doing each action (break/crash/signal/watch)
-        self.assertEqual(self.inferior_process.GetNumThreads(), 1, 'Expected to stop before any additional threads are spawned.')
-
-        self.runCmd("expr num_breakpoint_threads=%d" % num_breakpoint_threads)
-        self.runCmd("expr num_crash_threads=%d" % num_crash_threads)
-        self.runCmd("expr num_signal_threads=%d" % num_signal_threads)
-        self.runCmd("expr num_watchpoint_threads=%d" % num_watchpoint_threads)
-
-        self.runCmd("expr num_delay_breakpoint_threads=%d" % num_delay_breakpoint_threads)
-        self.runCmd("expr num_delay_crash_threads=%d" % num_delay_crash_threads)
-        self.runCmd("expr num_delay_signal_threads=%d" % num_delay_signal_threads)
-        self.runCmd("expr num_delay_watchpoint_threads=%d" % num_delay_watchpoint_threads)
-
-        # Continue the inferior so threads are spawned
-        self.runCmd("continue")
-
-        # Make sure we see all the threads. The inferior program's threads all synchronize with a pseudo-barrier; that is,
-        # the inferior program ensures all threads are started and running before any thread triggers its 'event'.
-        num_threads = self.inferior_process.GetNumThreads()
-        expected_num_threads = num_breakpoint_threads + num_delay_breakpoint_threads \
-                             + num_signal_threads + num_delay_signal_threads \
-                             + num_watchpoint_threads + num_delay_watchpoint_threads \
-                             + num_crash_threads + num_delay_crash_threads + 1
-        self.assertEqual(num_threads, expected_num_threads,
-            'Expected to see %d threads, but seeing %d. Details:\n%s' % (expected_num_threads,
-                                                                         num_threads,
-                                                                         "\n\t".join(self.describe_threads())))
-
-        self.signal_count = self.count_signaled_threads()
-        self.crash_count = len(lldbutil.get_crashed_threads(self, self.inferior_process))
-
-        # Run to completion (or crash)
-        while not self.inferior_done(): 
-            if self.TraceOn():
-                self.runCmd("thread backtrace all")
-            self.runCmd("continue")
-            self.signal_count += self.count_signaled_threads()
-            self.crash_count += len(lldbutil.get_crashed_threads(self, self.inferior_process))
-
-        if num_crash_threads > 0 or num_delay_crash_threads > 0:
-            # Expecting a crash
-            self.assertTrue(self.crash_count > 0,
-                "Expecting at least one thread to crash. Details: %s" % "\t\n".join(self.describe_threads()))
-
-            # Ensure the zombie process is reaped
-            self.runCmd("process kill")
-
-        elif num_crash_threads == 0 and num_delay_crash_threads == 0:
-            # There should be a single active thread (the main one) which hit the breakpoint after joining
-            self.assertEqual(1, self.finish_breakpoint.GetHitCount(), "Expected main thread (finish) breakpoint to be hit once")
-
-            num_threads = self.inferior_process.GetNumThreads()
-            self.assertEqual(1, num_threads, "Expecting 1 thread but seeing %d. Details:%s" % (num_threads,
-                                                                                             "\n\t".join(self.describe_threads())))
-            self.runCmd("continue")
-
-            # The inferior process should have exited without crashing
-            self.assertEqual(0, self.crash_count, "Unexpected thread(s) in crashed state")
-            self.assertEqual(self.inferior_process.GetState(), lldb.eStateExited, PROCESS_EXITED)
-
-            # Verify the number of actions took place matches expected numbers
-            expected_breakpoint_threads = num_delay_breakpoint_threads + num_breakpoint_threads
-            breakpoint_hit_count = self.thread_breakpoint.GetHitCount() if expected_breakpoint_threads > 0 else 0
-            self.assertEqual(expected_breakpoint_threads, breakpoint_hit_count,
-                "Expected %d breakpoint hits, but got %d" % (expected_breakpoint_threads, breakpoint_hit_count))
-
-            expected_signal_threads = num_delay_signal_threads + num_signal_threads
-            self.assertEqual(expected_signal_threads, self.signal_count,
-                "Expected %d stops due to signal delivery, but got %d" % (expected_signal_threads, self.signal_count))
-
-            expected_watchpoint_threads = num_delay_watchpoint_threads + num_watchpoint_threads
-            watchpoint_hit_count = self.thread_watchpoint.GetHitCount() if expected_watchpoint_threads > 0 else 0
-            self.assertEqual(expected_watchpoint_threads, watchpoint_hit_count,
-                "Expected %d watchpoint hits, got %d" % (expected_watchpoint_threads, watchpoint_hit_count))

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_delay_breakpoint_one_signal/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_delay_breakpoint_one_signal/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_delay_breakpoint_one_signal/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_delay_breakpoint_one_signal/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_delay_breakpoint_one_signal/TestConcurrentBreakpointDelayBreakpointOneSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_delay_breakpoint_one_signal/TestConcurrentBreakpointDelayBreakpointOneSignal.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_delay_breakpoint_one_signal/TestConcurrentBreakpointDelayBreakpointOneSignal.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_delay_breakpoint_one_signal/TestConcurrentBreakpointDelayBreakpointOneSignal.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,24 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentBreakpointDelayBreakpointOneSignal(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @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())
+        self.do_thread_actions(num_breakpoint_threads=1,
+                               num_delay_breakpoint_threads=1,
+                               num_signal_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_one_delay_breakpoint_threads/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_one_delay_breakpoint_threads/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_one_delay_breakpoint_threads/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_one_delay_breakpoint_threads/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_one_delay_breakpoint_threads/TestConcurrentBreakpointOneDelayBreakpointThreads.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_one_delay_breakpoint_threads/TestConcurrentBreakpointOneDelayBreakpointThreads.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_one_delay_breakpoint_threads/TestConcurrentBreakpointOneDelayBreakpointThreads.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoint_one_delay_breakpoint_threads/TestConcurrentBreakpointOneDelayBreakpointThreads.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentBreakpointOneDelayBreakpointThreads(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @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())
+        self.do_thread_actions(num_breakpoint_threads=1,
+                               num_delay_breakpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoints_delayed_breakpoint_one_watchpoint/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoints_delayed_breakpoint_one_watchpoint/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoints_delayed_breakpoint_one_watchpoint/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoints_delayed_breakpoint_one_watchpoint/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoints_delayed_breakpoint_one_watchpoint/TestConcurrentBreakpointsDelayedBreakpointOneWatchpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoints_delayed_breakpoint_one_watchpoint/TestConcurrentBreakpointsDelayedBreakpointOneWatchpoint.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoints_delayed_breakpoint_one_watchpoint/TestConcurrentBreakpointsDelayedBreakpointOneWatchpoint.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/breakpoints_delayed_breakpoint_one_watchpoint/TestConcurrentBreakpointsDelayedBreakpointOneWatchpoint.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,25 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentBreakpointsDelayedBreakpointOneWatchpoint(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_breakpoint_threads=1,
+                               num_delay_breakpoint_threads=1,
+                               num_watchpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_break/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_break/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_break/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_break/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_break/TestConcurrentCrashWithBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_break/TestConcurrentCrashWithBreak.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_break/TestConcurrentCrashWithBreak.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_break/TestConcurrentCrashWithBreak.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,22 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentCrashWithBreak(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @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())
+        self.do_thread_actions(num_crash_threads=1, num_breakpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_signal/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_signal/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_signal/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_signal/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_signal/TestConcurrentCrashWithSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_signal/TestConcurrentCrashWithSignal.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_signal/TestConcurrentCrashWithSignal.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_signal/TestConcurrentCrashWithSignal.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,22 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentCrashWithSignal(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @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())
+        self.do_thread_actions(num_crash_threads=1, num_signal_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint/TestConcurrentCrashWithWatchpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint/TestConcurrentCrashWithWatchpoint.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint/TestConcurrentCrashWithWatchpoint.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint/TestConcurrentCrashWithWatchpoint.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentCrashWithWatchpoint(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint_breakpoint_signal/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint_breakpoint_signal/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint_breakpoint_signal/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint_breakpoint_signal/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint_breakpoint_signal/TestConcurrentCrashWithWatchpointBreakpointSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint_breakpoint_signal/TestConcurrentCrashWithWatchpointBreakpointSignal.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint_breakpoint_signal/TestConcurrentCrashWithWatchpointBreakpointSignal.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/crash_with_watchpoint_breakpoint_signal/TestConcurrentCrashWithWatchpointBreakpointSignal.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,26 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentCrashWithWatchpointBreakpointSignal(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_crash_threads=1,
+                               num_breakpoint_threads=1,
+                               num_signal_threads=1,
+                               num_watchpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_break/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_break/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_break/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_break/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_break/TestConcurrentDelaySignalBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_break/TestConcurrentDelaySignalBreak.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_break/TestConcurrentDelaySignalBreak.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_break/TestConcurrentDelaySignalBreak.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,22 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentDelaySignalBreak(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @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)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_watch/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_watch/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_watch/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_watch/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_watch/TestConcurrentDelaySignalWatch.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_watch/TestConcurrentDelaySignalWatch.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_watch/TestConcurrentDelaySignalWatch.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_signal_watch/TestConcurrentDelaySignalWatch.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentDelaySignalWatch(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_delay_signal_threads=1, num_watchpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_watch_break/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_watch_break/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_watch_break/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_watch_break/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_watch_break/TestConcurrentDelayWatchBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_watch_break/TestConcurrentDelayWatchBreak.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_watch_break/TestConcurrentDelayWatchBreak.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delay_watch_break/TestConcurrentDelayWatchBreak.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentDelayWatchBreak(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_breakpoint_threads=1, num_delay_watchpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_signal/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_signal/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_signal/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_signal/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_signal/TestConcurrentDelayedCrashWithBreakpointSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_signal/TestConcurrentDelayedCrashWithBreakpointSignal.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_signal/TestConcurrentDelayedCrashWithBreakpointSignal.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_signal/TestConcurrentDelayedCrashWithBreakpointSignal.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,24 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentDelayedCrashWithBreakpointSignal(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @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())
+        self.do_thread_actions(num_delay_crash_threads=1,
+                               num_breakpoint_threads=1,
+                               num_signal_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_watchpoint/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_watchpoint/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_watchpoint/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_watchpoint/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_watchpoint/TestConcurrentDelayedCrashWithBreakpointWatchpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_watchpoint/TestConcurrentDelayedCrashWithBreakpointWatchpoint.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_watchpoint/TestConcurrentDelayedCrashWithBreakpointWatchpoint.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/delayed_crash_with_breakpoint_watchpoint/TestConcurrentDelayedCrashWithBreakpointWatchpoint.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,25 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentDelayedCrashWithBreakpointWatchpoint(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_delay_crash_threads=1,
+                               num_breakpoint_threads=1,
+                               num_watchpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_breakpoints/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_breakpoints/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_breakpoints/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_breakpoints/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_breakpoints/TestConcurrentManyBreakpoints.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_breakpoints/TestConcurrentManyBreakpoints.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_breakpoints/TestConcurrentManyBreakpoints.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_breakpoints/TestConcurrentManyBreakpoints.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,22 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentManyBreakpoints(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
+    @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)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_crash/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_crash/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_crash/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_crash/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_crash/TestConcurrentManyCrash.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_crash/TestConcurrentManyCrash.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_crash/TestConcurrentManyCrash.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_crash/TestConcurrentManyCrash.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentManyCrash(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
+    @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())
+        self.do_thread_actions(num_crash_threads=100)
+
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_signals/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_signals/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_signals/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_signals/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_signals/TestConcurrentManySignals.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_signals/TestConcurrentManySignals.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_signals/TestConcurrentManySignals.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_signals/TestConcurrentManySignals.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,22 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentManySignals(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
+    @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)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_watchpoints/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_watchpoints/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_watchpoints/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_watchpoints/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_watchpoints/TestConcurrentManyWatchpoints.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_watchpoints/TestConcurrentManyWatchpoints.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_watchpoints/TestConcurrentManyWatchpoints.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/many_watchpoints/TestConcurrentManyWatchpoints.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,22 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentManyWatchpoints(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
+    @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)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/n_watch_n_break/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/n_watch_n_break/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/n_watch_n_break/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/n_watch_n_break/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/n_watch_n_break/TestConcurrentNWatchNBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/n_watch_n_break/TestConcurrentNWatchNBreak.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/n_watch_n_break/TestConcurrentNWatchNBreak.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/n_watch_n_break/TestConcurrentNWatchNBreak.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,25 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentNWatchNBreak(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
+    def test_n_watch_n_break(self):
+        """Test with 5 watchpoint and breakpoint threads."""
+        self.build(dictionary=self.getBuildFlags())
+        self.do_thread_actions(num_watchpoint_threads=5,
+                               num_breakpoint_threads=5)
+
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_break/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_break/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_break/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_break/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_break/TestConcurrentSignalBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_break/TestConcurrentSignalBreak.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_break/TestConcurrentSignalBreak.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_break/TestConcurrentSignalBreak.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,22 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentSignalBreak(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @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)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_break/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_break/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_break/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_break/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_break/TestConcurrentSignalDelayBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_break/TestConcurrentSignalDelayBreak.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_break/TestConcurrentSignalDelayBreak.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_break/TestConcurrentSignalDelayBreak.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentSignalDelayBreak(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @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())
+        self.do_thread_actions(num_delay_breakpoint_threads=1, num_signal_threads=1)
+
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_watch/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_watch/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_watch/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_watch/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_watch/TestConcurrentSignalDelayWatch.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_watch/TestConcurrentSignalDelayWatch.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_watch/TestConcurrentSignalDelayWatch.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_delay_watch/TestConcurrentSignalDelayWatch.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,24 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentSignalDelayWatch(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_signal_threads=1, num_delay_watchpoint_threads=1)
+
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_n_watch_n_break/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_n_watch_n_break/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_n_watch_n_break/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_n_watch_n_break/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_n_watch_n_break/TestConcurrentSignalNWatchNBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_n_watch_n_break/TestConcurrentSignalNWatchNBreak.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_n_watch_n_break/TestConcurrentSignalNWatchNBreak.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_n_watch_n_break/TestConcurrentSignalNWatchNBreak.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,25 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentSignalNWatchNBreak(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @expectedFailureAll(triple = '^mips') # Atomic sequences are not supported yet for MIPS in LLDB.
+    def test_signal_n_watch_n_break(self):
+        """Test one signal thread with 5 watchpoint and breakpoint threads."""
+        self.build(dictionary=self.getBuildFlags())
+        self.do_thread_actions(num_signal_threads=1,
+                               num_watchpoint_threads=5,
+                               num_breakpoint_threads=5)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch/TestConcurrentSignalWatch.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch/TestConcurrentSignalWatch.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch/TestConcurrentSignalWatch.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch/TestConcurrentSignalWatch.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentSignalWatch(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_signal_threads=1, num_watchpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch_break/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch_break/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch_break/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch_break/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch_break/TestConcurrentSignalWatchBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch_break/TestConcurrentSignalWatchBreak.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch_break/TestConcurrentSignalWatchBreak.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/signal_watch_break/TestConcurrentSignalWatchBreak.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,25 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentSignalWatchBreak(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_signal_threads=1,
+                               num_watchpoint_threads=1,
+                               num_breakpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoint_threads/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoint_threads/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoint_threads/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoint_threads/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoint_threads/TestConcurrentTwoBreakpointThreads.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoint_threads/TestConcurrentTwoBreakpointThreads.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoint_threads/TestConcurrentTwoBreakpointThreads.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoint_threads/TestConcurrentTwoBreakpointThreads.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,22 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentTwoBreakpointThreads(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @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)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_delay_signal/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_delay_signal/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_delay_signal/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_delay_signal/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_delay_signal/TestConcurrentTwoBreakpointsOneDelaySignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_delay_signal/TestConcurrentTwoBreakpointsOneDelaySignal.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_delay_signal/TestConcurrentTwoBreakpointsOneDelaySignal.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_delay_signal/TestConcurrentTwoBreakpointsOneDelaySignal.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,22 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentTwoBreakpointsOneDelaySignal(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @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())
+        self.do_thread_actions(num_breakpoint_threads=2, num_delay_signal_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_signal/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_signal/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_signal/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_signal/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_signal/TestConcurrentTwoBreakpointsOneSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_signal/TestConcurrentTwoBreakpointsOneSignal.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_signal/TestConcurrentTwoBreakpointsOneSignal.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_signal/TestConcurrentTwoBreakpointsOneSignal.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,22 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentTwoBreakpointsOneSignal(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @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)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_watchpoint/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_watchpoint/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_watchpoint/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_watchpoint/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_watchpoint/TestConcurrentTwoBreakpointsOneWatchpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_watchpoint/TestConcurrentTwoBreakpointsOneWatchpoint.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_watchpoint/TestConcurrentTwoBreakpointsOneWatchpoint.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_breakpoints_one_watchpoint/TestConcurrentTwoBreakpointsOneWatchpoint.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentTwoBreakpointsOneWatchpoint(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_breakpoint_threads=2, num_watchpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoint_threads/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoint_threads/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoint_threads/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoint_threads/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoint_threads/TestConcurrentTwoWatchpointThreads.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoint_threads/TestConcurrentTwoWatchpointThreads.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoint_threads/TestConcurrentTwoWatchpointThreads.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoint_threads/TestConcurrentTwoWatchpointThreads.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentTwoWatchpointThreads(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_watchpoint_threads=2)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_breakpoint/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_breakpoint/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_breakpoint/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_breakpoint/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_breakpoint/TestConcurrentTwoWatchpointsOneBreakpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_breakpoint/TestConcurrentTwoWatchpointsOneBreakpoint.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_breakpoint/TestConcurrentTwoWatchpointsOneBreakpoint.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_breakpoint/TestConcurrentTwoWatchpointsOneBreakpoint.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentTwoWatchpointsOneBreakpoint(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_watchpoint_threads=2, num_breakpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_delay_breakpoint/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_delay_breakpoint/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_delay_breakpoint/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_delay_breakpoint/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_delay_breakpoint/TestConcurrentTwoWatchpointsOneDelayBreakpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_delay_breakpoint/TestConcurrentTwoWatchpointsOneDelayBreakpoint.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_delay_breakpoint/TestConcurrentTwoWatchpointsOneDelayBreakpoint.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_delay_breakpoint/TestConcurrentTwoWatchpointsOneDelayBreakpoint.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentTwoWatchpointsOneDelayBreakpoint(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_watchpoint_threads=2, num_delay_breakpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_signal/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_signal/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_signal/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_signal/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_signal/TestConcurrentTwoWatchpointsOneSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_signal/TestConcurrentTwoWatchpointsOneSignal.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_signal/TestConcurrentTwoWatchpointsOneSignal.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/two_watchpoints_one_signal/TestConcurrentTwoWatchpointsOneSignal.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentTwoWatchpointsOneSignal(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_watchpoint_threads=2, num_signal_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break/TestConcurrentWatchBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break/TestConcurrentWatchBreak.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break/TestConcurrentWatchBreak.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break/TestConcurrentWatchBreak.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentWatchBreak(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_breakpoint_threads=1, num_watchpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break_delay/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break_delay/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break_delay/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break_delay/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break_delay/TestConcurrentWatchBreakDelay.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break_delay/TestConcurrentWatchBreakDelay.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break_delay/TestConcurrentWatchBreakDelay.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watch_break_delay/TestConcurrentWatchBreakDelay.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,23 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentWatchBreakDelay(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_delay_breakpoint_threads=1, num_watchpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_delay_watchpoint_one_breakpoint/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_delay_watchpoint_one_breakpoint/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_delay_watchpoint_one_breakpoint/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_delay_watchpoint_one_breakpoint/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_delay_watchpoint_one_breakpoint/TestConcurrentWatchpointDelayWatchpointOneBreakpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_delay_watchpoint_one_breakpoint/TestConcurrentWatchpointDelayWatchpointOneBreakpoint.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_delay_watchpoint_one_breakpoint/TestConcurrentWatchpointDelayWatchpointOneBreakpoint.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_delay_watchpoint_one_breakpoint/TestConcurrentWatchpointDelayWatchpointOneBreakpoint.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,25 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentWatchpointDelayWatchpointOneBreakpoint(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_watchpoint_threads=1,
+                               num_delay_watchpoint_threads=1,
+                               num_breakpoint_threads=1)
+
+

Copied: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_with_delay_watchpoint_threads/Makefile (from r276411, lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_with_delay_watchpoint_threads/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_with_delay_watchpoint_threads/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile&r1=276411&r2=276478&rev=276478&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_with_delay_watchpoint_threads/Makefile Fri Jul 22 16:50:55 2016
@@ -1,7 +1,9 @@
-LEVEL = ../../../make
+LEVEL = ../../../../make
 
 CXX_SOURCES := main.cpp
 
 ENABLE_THREADS := YES
 
+VPATH = ..
+
 include $(LEVEL)/Makefile.rules

Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_with_delay_watchpoint_threads/TestConcurrentWatchpointWithDelayWatchpointThreads.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_with_delay_watchpoint_threads/TestConcurrentWatchpointWithDelayWatchpointThreads.py?rev=276478&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_with_delay_watchpoint_threads/TestConcurrentWatchpointWithDelayWatchpointThreads.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/watchpoint_with_delay_watchpoint_threads/TestConcurrentWatchpointWithDelayWatchpointThreads.py Fri Jul 22 16:50:55 2016
@@ -0,0 +1,24 @@
+from __future__ import print_function
+
+import unittest2
+
+from lldbsuite.test.decorators import *
+from lldbsuite.test.concurrent_base import ConcurrentEventsBase
+from lldbsuite.test.lldbtest import TestBase
+
+
+ at skipIfWindows
+class ConcurrentWatchpointWithDelayWatchpointThreads(ConcurrentEventsBase):
+
+    mydir = ConcurrentEventsBase.compute_mydir(__file__)
+
+    @skipIfFreeBSD # timing out on buildbot
+    @skipIfRemoteDueToDeadlock
+    @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())
+        self.do_thread_actions(num_watchpoint_threads=1,
+                               num_delay_watchpoint_threads=1)
+
+




More information about the lldb-commits mailing list