[Android] Fix subthread native test execution race condition.
On L and M, the system posts a task to the main thread after start() returns that prints a few lines to stdout. Our existing subthread execution model allowed the tests to run at the same time as this task, resulting in the task's output interfering with the tests' output. This change tweaks our subthread test launching logic to post a task to the main thread that posts another task to the main thread that launches the test subthread. This should ensure that the system task gets executed before we start running tests. BUG=678146 Review-Url: https://codereview.chromium.org/2610983002 Cr-Commit-Position: refs/heads/master@{#441458}
Showing
Please register or sign in to comment