Forcibly enable memory leak checking during "make test"

This commit is contained in:
Bodo Möller
2001-03-11 14:49:46 +00:00
parent 6017e604f8
commit 10654d3a74
8 changed files with 27 additions and 5 deletions

View File

@@ -149,6 +149,12 @@ int main(int argc, char *argv[])
unsigned char buf[100];
size_t i, len;
/* enable memory leak checking unless explicitly disabled */
if (!((getenv("OPENSSL_DEBUG_MEMORY") != NULL) && (0 == strcmp(getenv("OPENSSL_DEBUG_MEMORY"), "off"))))
{
CRYPTO_malloc_debug_init();
CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL);
}
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
ERR_load_crypto_strings();