memleaktest with MSVC's AddressSanitizer

Disabling memleaktest under MSVC because leak detection is not a supported feature with MSVC's AddressSanitizer. Leaving ASan enabled in this case causes a test failure because the test suite is expecting the leak to be detected.

CLA: trivial

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14581)
This commit is contained in:
Kevin Cadieux 2021-03-19 13:54:05 -07:00 committed by Tomas Mraz
parent 67ea4beb94
commit d97adfda28

View File

@ -20,7 +20,10 @@
# endif
#endif
/* If __SANITIZE_ADDRESS__ isn't defined, define it to be false */
#ifndef __SANITIZE_ADDRESS__
/* Leak detection is not yet supported with MSVC on Windows, so */
/* set __SANITIZE_ADDRESS__ to false in this case as well. */
#if !defined(__SANITIZE_ADDRESS__) || defined(_MSC_VER)
# undef __SANITIZE_ADDRESS__
# define __SANITIZE_ADDRESS__ 0
#endif