summaryrefslogtreecommitdiff
path: root/test/provider_internal_test.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-04-04 12:35:47 +0200
committerRichard Levitte <levitte@openssl.org>2019-04-04 13:39:33 +0200
commit2a2bc6fc12c6f6fc47c7c66dd4d0e3ef4be17777 (patch)
treec5e7c9144ae14c9aae40961c1bc0c08b026fe384 /test/provider_internal_test.c
parent706b6333a6dd29a8d11561dee8013a2fddbc2742 (diff)
downloadopenssl-new-2a2bc6fc12c6f6fc47c7c66dd4d0e3ef4be17777.tar.gz
For provider tests, don't define a OPENSSL_NO_ macro
Since the macro to indicate if the test provider module is available is local to the test programs, it's better to use a name that isn't as easily confused with a library feature disabling macro that one would expect to find in opensslconf.h. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8664)
Diffstat (limited to 'test/provider_internal_test.c')
-rw-r--r--test/provider_internal_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/provider_internal_test.c b/test/provider_internal_test.c
index f3006fe263..6123d6b4f8 100644
--- a/test/provider_internal_test.c
+++ b/test/provider_internal_test.c
@@ -60,7 +60,7 @@ static int test_builtin_provider(void)
&& test_provider(prov, expected_greeting1(name));
}
-#ifndef OPENSSL_NO_MODULE
+#ifndef NO_PROVIDER_MODULE
static int test_loaded_provider(void)
{
const char *name = "p_test";
@@ -89,7 +89,7 @@ static int test_configured_provider(void)
int setup_tests(void)
{
ADD_TEST(test_builtin_provider);
-#ifndef OPENSSL_NO_MODULE
+#ifndef NO_PROVIDER_MODULE
ADD_TEST(test_loaded_provider);
ADD_TEST(test_configured_provider);
#endif