From 0f6aad4ad20040bd9314ebc026f7238cb7a8519e Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 5 Aug 2016 22:36:30 +0000 Subject: [PATCH] Disable a few win asan64 tests that don't reliably pass, https://reviews.llvm.org/D23230 llvm-svn: 277882 --- .../lib/sanitizer_common/tests/sanitizer_allocator_test.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc index cfb44a1..e2303d6 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc @@ -159,6 +159,9 @@ void TestSizeClassAllocator() { } #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, SizeClassAllocator64) { TestSizeClassAllocator(); } @@ -171,6 +174,7 @@ TEST(SanitizerCommon, SizeClassAllocator64Compact) { TestSizeClassAllocator(); } #endif +#endif TEST(SanitizerCommon, SizeClassAllocator32Compact) { TestSizeClassAllocator(); @@ -248,6 +252,9 @@ void SizeClassAllocatorGetBlockBeginStress() { } #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 +267,7 @@ TEST(SanitizerCommon, SizeClassAllocator64CompactGetBlockBegin) { TEST(SanitizerCommon, SizeClassAllocator32CompactGetBlockBegin) { SizeClassAllocatorGetBlockBeginStress(); } +#endif #endif // SANITIZER_CAN_USE_ALLOCATOR64 struct TestMapUnmapCallback { @@ -554,6 +562,9 @@ void TestSizeClassAllocatorLocalCache() { } #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, SizeClassAllocator64LocalCache) { TestSizeClassAllocatorLocalCache< SizeClassAllocatorLocalCache >(); @@ -569,6 +580,7 @@ TEST(SanitizerCommon, SizeClassAllocator64CompactLocalCache) { SizeClassAllocatorLocalCache >(); } #endif +#endif TEST(SanitizerCommon, SizeClassAllocator32CompactLocalCache) { TestSizeClassAllocatorLocalCache< -- 2.7.4