Commit 2daab068 authored by rvargas@google.com's avatar rvargas@google.com

Disk Cache: Supress tsan warnings for BackendTrimInvalidEntry2

BUG=101853
TEST=none
Review URL: http://codereview.chromium.org/8343048

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107844 0039d316-1c4b-4281-b951-d872f2087c98
parent f42d13e8
...@@ -828,7 +828,11 @@ void DiskCacheBackendTest::BackendTrimInvalidEntry2() { ...@@ -828,7 +828,11 @@ void DiskCacheBackendTest::BackendTrimInvalidEntry2() {
// We may abort the eviction before cleaning up everything. // We may abort the eviction before cleaning up everything.
MessageLoop::current()->RunAllPending(); MessageLoop::current()->RunAllPending();
FlushQueueForTest(); FlushQueueForTest();
// If it's not clear enough: we may still have eviction tasks running at this
// time, so the number of entries is changing while we read it.
ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN();
EXPECT_GE(30, cache_->GetEntryCount()); EXPECT_GE(30, cache_->GetEntryCount());
ANNOTATE_IGNORE_READS_AND_WRITES_END();
} }
// We'll be leaking memory from this test. // We'll be leaking memory from this test.
......
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