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

Issue 2494133002: Fix a data race in multiple unit tests processes. (Closed)

Created:
4 years, 1 month ago by fdoray
Modified:
4 years, 1 month ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a data race in multiple unit tests processes. There is a race between TestSuite::Initialize() initializing logging and the "test_io_thread" using assert(). This CL fixes this race by initializing logging in the constructor of TestSuite, before any thread is created. See failing unit tests in this CL: https://codereview.chromium.org/2502973002/ BUG=665945 Committed: https://crrev.com/4394a610dc161262d1ec2913d55e29727a79d25f Cr-Commit-Position: refs/heads/master@{#432869}

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : self-review #

Patch Set 4 : self-review #

Patch Set 5 : fix logger test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -24 lines) Patch
M base/test/test_suite.cc View 1 2 3 4 chunks +25 lines, -14 lines 0 comments Download
M base/test/test_support_android.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M base/test/test_support_android.cc View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/sync_file_system/logger_unittest.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 18 (11 generated)
fdoray
phajdan.jr@: PTAL thestig@: FYI
4 years, 1 month ago (2016-11-16 18:04:35 UTC) #8
Paweł Hajdan Jr.
LGTM
4 years, 1 month ago (2016-11-17 07:47:59 UTC) #9
fdoray
nhiroki@: Please review changes in chrome/browser/sync_file_system/
4 years, 1 month ago (2016-11-17 13:13:24 UTC) #11
nhiroki
On 2016/11/17 13:13:24, fdoray wrote: > nhiroki@: Please review changes in chrome/browser/sync_file_system/ lgtm
4 years, 1 month ago (2016-11-17 13:33:36 UTC) #12
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/2494133002/80001
4 years, 1 month ago (2016-11-17 13:36:23 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-17 14:41:54 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 14:46:17 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4394a610dc161262d1ec2913d55e29727a79d25f
Cr-Commit-Position: refs/heads/master@{#432869}

Powered by Google App Engine
This is Rietveld 408576698