| Index: base/metrics/persistent_memory_allocator_unittest.cc
|
| diff --git a/base/metrics/persistent_memory_allocator_unittest.cc b/base/metrics/persistent_memory_allocator_unittest.cc
|
| index a89267ac4ed9b4446035508368771d3a9f2e3ceb..8b98ee4cd44406d8fd80a3ca9e9e4a418250bb05 100644
|
| --- a/base/metrics/persistent_memory_allocator_unittest.cc
|
| +++ b/base/metrics/persistent_memory_allocator_unittest.cc
|
| @@ -307,7 +307,13 @@ TEST_F(PersistentMemoryAllocatorTest, ParallelismTest) {
|
| // This test doesn't verify anything other than it doesn't crash. Its goal
|
| // is to find coding errors that aren't otherwise tested for, much like a
|
| // "fuzzer" would.
|
| -TEST_F(PersistentMemoryAllocatorTest, CorruptionTest) {
|
| +// This test is suppsoed to fail on TSAN bot (crbug.com/579867).
|
| +#if defined(THREAD_SANITIZER)
|
| +#define MAYBE_CorruptionTest DISABLED_CorruptionTest
|
| +#else
|
| +#define MAYBE_CorruptionTest CorruptionTest
|
| +#endif
|
| +TEST_F(PersistentMemoryAllocatorTest, MAYBE_CorruptionTest) {
|
| char* memory = mem_segment_.get();
|
| AllocatorThread t1("t1", memory, TEST_MEMORY_SIZE, TEST_MEMORY_PAGE);
|
| AllocatorThread t2("t2", memory, TEST_MEMORY_SIZE, TEST_MEMORY_PAGE);
|
|
|