From 8793f012f11416abd300aa524057c863e8c16dd5 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 8 Feb 2016 16:45:35 +0000 Subject: Clean up the tests for auto-init/de-init Remove the need to explicitly initialise/deinitialise for the tests Reviewed-by: Richard Levitte --- test/enginetest.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test/enginetest.c') diff --git a/test/enginetest.c b/test/enginetest.c index d8dcca9cc3..873b4eaaad 100644 --- a/test/enginetest.c +++ b/test/enginetest.c @@ -109,7 +109,6 @@ int main(int argc, char *argv[]) p = getenv("OPENSSL_DEBUG_MEMORY"); if (p != NULL && strcmp(p, "on") == 0) CRYPTO_set_mem_debug(1); - ERR_load_crypto_strings(); memset(block, 0, sizeof(block)); if (((new_h1 = ENGINE_new()) == NULL) || @@ -244,10 +243,7 @@ int main(int argc, char *argv[]) ENGINE_free(new_h4); for (loop = 0; loop < 512; loop++) ENGINE_free(block[loop]); - ENGINE_cleanup(); - CRYPTO_cleanup_all_ex_data(); - ERR_free_strings(); - ERR_remove_thread_state(NULL); + #ifndef OPENSSL_NO_CRYPTO_MDEBUG if (CRYPTO_mem_leaks_fp(stderr) <= 0) to_return = 1; -- cgit v1.2.3