commit | 97a2b0fa5c8120624314a09e0c7321acf5491663 | [log] [tgz] |
---|---|---|
author | Marc Treib <treib@chromium.org> | Tue Jan 08 10:54:56 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 08 10:54:56 2019 |
tree | c5daf18b39917ed18f23ea599f4176a3d56e610f | |
parent | f9ff8cff193cb5af38409bd5e304fc5ca522d57a [diff] |
Fix and reenable one EnableDisableSingleClientTest on TSan The test was disabled due to a data race related to the global FeatureList instance. The problem was that the test body instantiated a ScopedFeatureList, which overrides the global instance. That gets reset after the test body; however, the feature value might still be queried from the Sync thread after that. The fix is to not create a ScopedFeatureList in the test body, and instead put it into the test fixture. This way, its lifetime is long enough to avoid the race. Note: Many other sync_integration_tests have similar races. If this is confirmed to fix it, I'll apply the same pattern everywhere else too. Bug: 915219 Change-Id: I40709ef8edf5f46720504d47744f1d5bd40ce711 Reviewed-on: https://chromium-review.googlesource.com/c/1400585 Reviewed-by: Mikel Astiz <mastiz@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#620675}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .