diff options
author | Pauli <pauli@openssl.org> | 2023-08-02 10:44:37 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-08-04 11:58:33 +1000 |
commit | 9d097d56ea9f78c4cbd973575ea112807290c66e (patch) | |
tree | d0501682d7d3017ffcfac6d645d7da177be76669 /test | |
parent | 61eafa8d27303f0b87d7951bf95ed81f57db8b37 (diff) |
provider test: don't run configuration based tests if configuration isn't loaded
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/21621)
(cherry picked from commit a9dde749504065e6e66b63cc12c25381465ec721)
Diffstat (limited to 'test')
-rw-r--r-- | test/provider_internal_test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/provider_internal_test.c b/test/provider_internal_test.c index cb7d5efcf5..bccce7159e 100644 --- a/test/provider_internal_test.c +++ b/test/provider_internal_test.c @@ -83,6 +83,7 @@ static int test_loaded_provider(void) && test_provider(prov, expected_greeting1(name)); } +# ifndef OPENSSL_NO_AUTOLOAD_CONFIG static int test_configured_provider(void) { const char *name = "p_test_configured"; @@ -95,6 +96,7 @@ static int test_configured_provider(void) TEST_ptr(prov = ossl_provider_find(NULL, name, 0)) && test_provider(prov, expected_greeting); } +# endif #endif static int test_cache_flushes(void) @@ -139,7 +141,9 @@ int setup_tests(void) ADD_TEST(test_builtin_provider); #ifndef NO_PROVIDER_MODULE ADD_TEST(test_loaded_provider); +# ifndef OPENSSL_NO_AUTOLOAD_CONFIG ADD_TEST(test_configured_provider); +# endif #endif ADD_TEST(test_cache_flushes); return 1; |