Index: lib/sanitizer_common/tests/sanitizer_allocator_test.cc =================================================================== --- lib/sanitizer_common/tests/sanitizer_allocator_test.cc +++ lib/sanitizer_common/tests/sanitizer_allocator_test.cc @@ -163,9 +163,14 @@ TestSizeClassAllocator(); } +// This test can fail on Windows if memory is somewhat full and lit happens +// to run several large-memory tests at the same time. +// FIXME: Make it not flaky and reenable. +#if !SANITIZER_WINDOWS TEST(SanitizerCommon, SizeClassAllocator64Dynamic) { TestSizeClassAllocator(); } +#endif TEST(SanitizerCommon, SizeClassAllocator64Compact) { TestSizeClassAllocator(); @@ -248,6 +253,9 @@ } #if SANITIZER_CAN_USE_ALLOCATOR64 +// These tests can fail on Windows if memory is somewhat full and lit happens +// to run them all at the same time. FIXME: Make them not flaky and reenable. +#if !SANITIZER_WINDOWS TEST(SanitizerCommon, SizeClassAllocator64GetBlockBegin) { SizeClassAllocatorGetBlockBeginStress(); } @@ -260,6 +268,7 @@ TEST(SanitizerCommon, SizeClassAllocator32CompactGetBlockBegin) { SizeClassAllocatorGetBlockBeginStress(); } +#endif #endif // SANITIZER_CAN_USE_ALLOCATOR64 struct TestMapUnmapCallback { @@ -559,10 +568,15 @@ SizeClassAllocatorLocalCache >(); } +// This test can fail on Windows if memory is somewhat full and lit happens +// to run several large-memory tests at the same time. +// FIXME: Make it not flaky and reenable. +#if !SANITIZER_WINDOWS TEST(SanitizerCommon, SizeClassAllocator64DynamicLocalCache) { TestSizeClassAllocatorLocalCache< SizeClassAllocatorLocalCache >(); } +#endif TEST(SanitizerCommon, SizeClassAllocator64CompactLocalCache) { TestSizeClassAllocatorLocalCache<