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/exptest.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/exptest.c') diff --git a/test/exptest.c b/test/exptest.c index 5cd79e2970..84d76be403 100644 --- a/test/exptest.c +++ b/test/exptest.c @@ -194,8 +194,6 @@ int main(int argc, char *argv[]) * don't even check its return * value (which we should) */ - ERR_load_BN_strings(); - ctx = BN_CTX_new(); if (ctx == NULL) EXIT(1); @@ -298,7 +296,7 @@ int main(int argc, char *argv[]) BN_free(b); BN_free(m); BN_CTX_free(ctx); - ERR_remove_thread_state(NULL); + #ifndef OPENSSL_NO_CRYPTO_MDEBUG if (CRYPTO_mem_leaks(out) <= 0) goto err; @@ -313,7 +311,6 @@ int main(int argc, char *argv[]) EXIT(0); err: - ERR_load_crypto_strings(); ERR_print_errors(out); #ifdef OPENSSL_SYS_NETWARE printf("ERROR\n"); -- cgit v1.2.3