test events: announce worker count in new initialize event

See the following for details:
http://reviews.llvm.org/D12987

llvm-svn: 248059
diff --git a/lldb/test/dosep.py b/lldb/test/dosep.py
index 18d697c..90d5712 100755
--- a/lldb/test/dosep.py
+++ b/lldb/test/dosep.py
@@ -180,9 +180,14 @@
         command = [timeout_command, '-s', 'QUIT', timeout] + command
 
     if GET_WORKER_INDEX is not None:
-        worker_index = GET_WORKER_INDEX()
-        command.extend([
-            "--event-add-entries", "worker_index={}".format(worker_index)])
+        try:
+            worker_index = GET_WORKER_INDEX()
+            command.extend([
+                "--event-add-entries", "worker_index={}".format(worker_index)])
+        except:
+            # Ctrl-C does bad things to multiprocessing.Manager.dict() lookup.
+            pass
+
     # Specifying a value for close_fds is unsupported on Windows when using
     # subprocess.PIPE
     if os.name != "nt":
@@ -896,7 +901,7 @@
     # listener channel and tell the inferior to send results to the
     # port on which we'll be listening.
     if RESULTS_FORMATTER is not None:
-        forwarding_func = RESULTS_FORMATTER.process_event
+        forwarding_func = RESULTS_FORMATTER.handle_event
         RESULTS_LISTENER_CHANNEL = (
             dotest_channels.UnpicklingForwardingListenerChannel(
                 RUNNER_PROCESS_ASYNC_MAP, "localhost", 0, forwarding_func))
@@ -1184,15 +1189,6 @@
     for core in cores:
         os.unlink(core)
 
-    if not num_threads:
-        num_threads_str = os.environ.get("LLDB_TEST_THREADS")
-        if num_threads_str:
-            num_threads = int(num_threads_str)
-        else:
-            num_threads = multiprocessing.cpu_count()
-    if num_threads < 1:
-        num_threads = 1
-
     system_info = " ".join(platform.uname())
 
     # Figure out which testrunner strategy we'll use.