Use the existing definition of MBEDTLS_TEST_HAVE_ASAN

A definition now exists in tests/helpers.h, which is a better place.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2023-11-22 18:13:23 +01:00
parent d751406f8d
commit 5e8740576c

View File

@ -23,14 +23,6 @@
*
* Currently, only Asan (Address Sanitizer) is supported.
*/
#if defined(__SANITIZE_ADDRESS__)
# define MBEDTLS_TEST_HAVE_ASAN
#endif
#if defined(__has_feature)
# if __has_feature(address_sanitizer)
# define MBEDTLS_TEST_HAVE_ASAN
# endif
#endif
#if defined(MBEDTLS_TEST_HAVE_ASAN)
# define MBEDTLS_TEST_MEMORY_CAN_POISON
#endif