Commit 7bd0c1d5 authored by Jochen Eisinger's avatar Jochen Eisinger Committed by Commit Bot

Next attempt to deflake CompilerDispatcherTest

BUG=v8:6069
R=rmcilroy@chromium.org

Change-Id: I0e1096e20fa96af0a4875704f3f90e8458750356
Reviewed-on: https://chromium-review.googlesource.com/456557Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
Commit-Queue: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43911}
parent 5050640c
......@@ -722,9 +722,12 @@ TEST_F(CompilerDispatcherTest, FinishNowDuringAbortAll) {
// Force the compilation to finish, even while aborting.
ASSERT_TRUE(dispatcher.FinishNow(shared));
ASSERT_TRUE(dispatcher.jobs_.empty());
{
for (;;) {
base::LockGuard<base::Mutex> lock(&dispatcher.mutex_);
if (dispatcher.num_background_tasks_ == 0) {
ASSERT_FALSE(dispatcher.abort_);
break;
}
}
ASSERT_TRUE(platform.ForegroundTasksPending());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment