From e053cb2f12ad05b58406a28724b362eeffd09cdb Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Tue, 6 Feb 2024 14:57:43 +0000 Subject: [PATCH] Stop platform test failures with GCC and TSAN Signed-off-by: Paul Elliott --- tests/include/test/helpers.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/include/test/helpers.h b/tests/include/test/helpers.h index 7c962a283..47d4dcd45 100644 --- a/tests/include/test/helpers.h +++ b/tests/include/test/helpers.h @@ -23,6 +23,10 @@ #if defined(__SANITIZE_ADDRESS__) /* gcc -fsanitize=address */ # define MBEDTLS_TEST_HAVE_ASAN #endif +#if defined(__SANITIZE_THREAD__) /* gcc -fsanitize-thread */ +# define MBEDTLS_TEST_HAVE_TSAN +#endif + #if defined(__has_feature) # if __has_feature(address_sanitizer) /* clang -fsanitize=address */ # define MBEDTLS_TEST_HAVE_ASAN