summaryrefslogtreecommitdiffstats
path: root/test/cmp_ctx_test.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-10-04 11:12:04 +0100
committerMatt Caswell <matt@openssl.org>2019-10-07 08:31:35 +0100
commit8e1a15822bcec6a1fb591f2d0ec4ce618d178926 (patch)
tree9f0e2a36ac3622f301a364d13ba81e1bfee87d76 /test/cmp_ctx_test.c
parent37133290832ac2d1389926eba7325125fdacbe8d (diff)
Fix no-autoerrinit
Don't run the test_CTX_print_errors test test in test_cmp_ctx if no-autoerrinit has been configured. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10091)
Diffstat (limited to 'test/cmp_ctx_test.c')
-rw-r--r--test/cmp_ctx_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cmp_ctx_test.c b/test/cmp_ctx_test.c
index 3cc84deec6..16ce9c5c7e 100644
--- a/test/cmp_ctx_test.c
+++ b/test/cmp_ctx_test.c
@@ -109,7 +109,7 @@ static int test_CTX_reinit(void)
return result;
}
-#ifndef OPENSSL_NO_ERR
+#if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT)
static int msg_total_size = 0;
static int msg_total_size_log_cb(const char *func, const char *file, int line,
@@ -790,7 +790,7 @@ int setup_tests(void)
* with OSSL_CMP_severity OSSL_CMP_LOG_ERR/WARNING/DEBUG/INFO:
*/
ADD_TEST(test_cmp_ctx_log_cb);
-#ifndef OPENSSL_NO_ERR
+#if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT)
/* also tests OSSL_CMP_CTX_set_log_cb(), OSSL_CMP_print_errors_cb(),
ossl_cmp_add_error_txt(), and the macros
ossl_cmp_add_error_data and ossl_cmp_add_error_line: