From 5442611dffed2c345ef83d494f2ef7ffb9cf3883 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 22 Apr 2021 15:58:50 +0100 Subject: 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 (Merged from https://github.com/openssl/openssl/pull/14991) --- test/recipes/04-test_provider.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/recipes/04-test_provider.t') 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"); -- cgit v1.2.3