aboutsummaryrefslogtreecommitdiffstats
path: root/test/recipes/04-test_provider.t
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-04-22 15:58:50 +0100
committerMatt Caswell <matt@openssl.org>2021-05-11 14:59:43 +0100
commit5442611dffed2c345ef83d494f2ef7ffb9cf3883 (patch)
tree5291ec32b87aa8e13cb9befed9fe8f39505272be /test/recipes/04-test_provider.t
parentd0efad482f7d72db3d52bdb0380bd019e6d59de8 (diff)
downloadopenssl-5442611dffed2c345ef83d494f2ef7ffb9cf3883.tar.gz
Add a test for OSSL_LIB_CTX_new_child()
Check that we can create such a libctx and usable providers are loaded into it. Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14991)
Diffstat (limited to 'test/recipes/04-test_provider.t')
-rw-r--r--test/recipes/04-test_provider.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/recipes/04-test_provider.t b/test/recipes/04-test_provider.t
index 9195a424cd..44274f8f07 100644
--- a/test/recipes/04-test_provider.t
+++ b/test/recipes/04-test_provider.t
@@ -8,11 +8,14 @@
use strict;
use OpenSSL::Test qw(:DEFAULT bldtop_dir);
-use OpenSSL::Test::Simple;
use OpenSSL::Test::Utils;
setup("test_provider");
+plan tests => 2;
+
+ok(run(test(['provider_test'])), "provider_test");
+
$ENV{"OPENSSL_MODULES"} = bldtop_dir("test");
-simple_test("test_provider", "provider_test");
+ok(run(test(['provider_test', '-loaded'])), "provider_test -loaded");