]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix test/recipes/90-test_fipsload.t to use bldtop_file for the FIPS module
authorRichard Levitte <levitte@openssl.org>
Tue, 7 Sep 2021 10:48:52 +0000 (12:48 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 8 Sep 2021 14:33:33 +0000 (16:33 +0200)
It used bldtop_dir(), which is incorrect for files.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16532)

test/recipes/90-test_fipsload.t

index 9aa39da0e4b9214fe08ee695c5e645ed0f286261..7537e2cb75ff039c7445127c3103698657d1eb58 100644 (file)
@@ -6,7 +6,7 @@
 # in the file LICENSE in the source distribution or at
 # https://www.openssl.org/source/license.html
 
-use OpenSSL::Test qw/:DEFAULT srctop_dir bldtop_dir/;
+use OpenSSL::Test qw/:DEFAULT srctop_dir bldtop_dir bldtop_file/;
 use OpenSSL::Test::Utils;
 
 BEGIN {
@@ -25,7 +25,7 @@ plan skip_all => 'Test is disabled in an address sanitizer build' unless disable
 
 plan tests => 1;
 
-my $fips = bldtop_dir('providers', platform->dso('fips'));
+my $fips = bldtop_file('providers', platform->dso('fips'));
 
 ok(run(test(['moduleloadtest', $fips, 'OSSL_provider_init'])),
    "trying to load $fips in its own");