[base] Ensure that tests don't change the thread priority (reland #3).
This is a reland of https://crrev.com/c/chromium/src/+/1865405 The difference is that the check is not enabled on Android, due to test failures. It is better to land this now to avoid regressions on other platforms while Android failure is investigated. Diff: https://crrev.com/c/chromium/src/+/1894158/1..2/base/test/test_suite.cc This CL verifies that the thread priority is normal when a test process is launched and before/after each test. The goal is to avoid having tests that assume they run at normal priority be disabled because of other misbehaving tests (e.g. https://crbug.com/931706). TBR=gab@chromium.org,sky@chromium.org,michaelpg@chromium.org,thakis@chromium.org,eseckler@chromium.org Bug: 931706 Change-Id: I2db19e011ad1c408bb112b35b453b081f6888739 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894158 Commit-Queue: François Doray <fdoray@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#712259}
Showing
Please register or sign in to comment