Description[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
Committed: https://crrev.com/ff8298584409040003a088792394d4ea3101f8d4
Cr-Commit-Position: refs/heads/master@{#441458}
Patch Set 1 #
Total comments: 2
Patch Set 2 : jcivelli comments #Messages
Total messages: 13 (7 generated)
|