mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-22 18:39:58 +00:00
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:
parent
e0acf8787d
commit
abfad78655
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "mbedtls/build_info.h"
|
#include "mbedtls/build_info.h"
|
||||||
#include "mbedtls/platform.h"
|
#include "mbedtls/platform.h"
|
||||||
|
#include "test/helpers.h"
|
||||||
|
|
||||||
/** \def MBEDTLS_TEST_MEMORY_CAN_POISON
|
/** \def MBEDTLS_TEST_MEMORY_CAN_POISON
|
||||||
*
|
*
|
||||||
@ -23,14 +24,6 @@
|
|||||||
*
|
*
|
||||||
* Currently, only Asan (Address Sanitizer) is supported.
|
* 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)
|
#if defined(MBEDTLS_TEST_HAVE_ASAN)
|
||||||
# define MBEDTLS_TEST_MEMORY_CAN_POISON
|
# define MBEDTLS_TEST_MEMORY_CAN_POISON
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user