diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cpp index baf9b37fb9556..26593c0c2f496 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cpp +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cpp @@ -28,6 +28,14 @@ using namespace __sanitizer; +#if SANITIZER_SOLARIS && defined(__sparcv9) +// FIXME: These tests probably fail because Solaris/sparcv9 uses the full +// 64-bit address space. Needs more investigation +#define SKIP_ON_SOLARIS_SPARCV9(x) DISABLED_##x +#else +#define SKIP_ON_SOLARIS_SPARCV9(x) x +#endif + // Too slow for debug build #if !SANITIZER_DEBUG @@ -701,7 +709,7 @@ TEST(SanitizerCommon, CombinedAllocator64VeryCompact) { } #endif -TEST(SanitizerCommon, CombinedAllocator32Compact) { +TEST(SanitizerCommon, SKIP_ON_SOLARIS_SPARCV9(CombinedAllocator32Compact)) { TestCombinedAllocator(); } @@ -937,7 +945,7 @@ TEST(SanitizerCommon, SizeClassAllocator64DynamicIteration) { #endif #endif -TEST(SanitizerCommon, SizeClassAllocator32Iteration) { +TEST(SanitizerCommon, SKIP_ON_SOLARIS_SPARCV9(SizeClassAllocator32Iteration)) { TestSizeClassAllocatorIteration(); }