diff options
| author | Todd Fiala <todd.fiala@gmail.com> | 2015-09-18 22:45:31 +0000 |
|---|---|---|
| committer | Todd Fiala <todd.fiala@gmail.com> | 2015-09-18 22:45:31 +0000 |
| commit | e83f140833d62c2db964403bb0dd7d8909f0513c (patch) | |
| tree | ccd16c002c0c30a213afd20ea4308eeee1a339cc /lldb/test/dosep.py | |
| parent | e629a45531b16cb1d64ad99e7473faaef2986276 (diff) | |
| download | bcm5719-llvm-e83f140833d62c2db964403bb0dd7d8909f0513c.tar.gz bcm5719-llvm-e83f140833d62c2db964403bb0dd7d8909f0513c.zip | |
test events: announce worker count in new initialize event
See the following for details:
http://reviews.llvm.org/D12987
llvm-svn: 248059
Diffstat (limited to 'lldb/test/dosep.py')
| -rwxr-xr-x | lldb/test/dosep.py | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/lldb/test/dosep.py b/lldb/test/dosep.py index 18d697caa2a..90d57123ae8 100755 --- a/lldb/test/dosep.py +++ b/lldb/test/dosep.py @@ -180,9 +180,14 @@ def call_with_timeout(command, timeout, name, inferior_pid_events): 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 @@ def walk_and_invoke(test_directory, test_subdir, dotest_argv, # 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 @@ def main(print_details_on_success, num_threads, test_subdir, 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. |

