Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Issue 2610983002: [Android] Fix subthread native test execution race condition. (Closed)

Created:
3 years, 11 months ago by jbudorick
Modified:
3 years, 11 months ago
Reviewers:
Jay Civelli
CC:
chromium-reviews, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -10 lines) Patch
M testing/android/native_test/java/src/org/chromium/native_test/NativeTest.java View 1 1 chunk +27 lines, -10 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
jbudorick
3 years, 11 months ago (2017-01-04 19:24:12 UTC) #2
Jay Civelli
lgtm Nit: there is a typo in the CL's message: s/intefering/interfering https://codereview.chromium.org/2610983002/diff/1/testing/android/native_test/java/src/org/chromium/native_test/NativeTest.java File testing/android/native_test/java/src/org/chromium/native_test/NativeTest.java (right): ...
3 years, 11 months ago (2017-01-04 19:36:05 UTC) #3
jbudorick
Fixed the description typo. https://codereview.chromium.org/2610983002/diff/1/testing/android/native_test/java/src/org/chromium/native_test/NativeTest.java File testing/android/native_test/java/src/org/chromium/native_test/NativeTest.java (right): https://codereview.chromium.org/2610983002/diff/1/testing/android/native_test/java/src/org/chromium/native_test/NativeTest.java#newcode131 testing/android/native_test/java/src/org/chromium/native_test/NativeTest.java:131: final Runnable r = new ...
3 years, 11 months ago (2017-01-04 19:59:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2610983002/20001
3 years, 11 months ago (2017-01-04 20:11:41 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
3 years, 11 months ago (2017-01-04 20:53:42 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 20:57:39 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ff8298584409040003a088792394d4ea3101f8d4
Cr-Commit-Position: refs/heads/master@{#441458}

Powered by Google App Engine
This is Rietveld 408576698