From 21d0b7a367e72309020fb6a41be2cb4b5e5e6ded Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Tue, 10 Dec 2024 08:41:09 +0100 Subject: [PATCH] [TEST] Disable gcc asan for expected overflow This test is still activated in clang --- test/unit/hibf/counting_vector_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/hibf/counting_vector_test.cpp b/test/unit/hibf/counting_vector_test.cpp index 9d37b804..248061d1 100644 --- a/test/unit/hibf/counting_vector_test.cpp +++ b/test/unit/hibf/counting_vector_test.cpp @@ -3,7 +3,7 @@ // SPDX-License-Identifier: BSD-3-Clause #ifndef HIBF_HAS_AVX512 -# define HIBF_HAS_AVX512 0 +#define HIBF_HAS_AVX512 0 #endif #include // for Message, TYPED_TEST, TestPartResult, ASSERT_EQ, EXPECT_EQ, Types @@ -175,6 +175,7 @@ TYPED_TEST(counting_vector_test, size_not_divisible_by_64) this->check_sub(); } +#if !(HIBF_COMPILER_IS_GCC && defined(__SANITIZE_ADDRESS__)) TYPED_TEST(counting_vector_test, overflow) { constexpr TypeParam max_value = std::numeric_limits::max(); @@ -194,3 +195,4 @@ TYPED_TEST(counting_vector_test, overflow) std::ranges::fill(this->expected, max_value); this->check_sub(); // counting_vector[2033...2047] may underflow but it does not affect the actual results } +#endif