Skip to content

Commit

Permalink
Fix test/recipes/90-test_fipsload.t to use bldtop_file for the FIPS m…
Browse files Browse the repository at this point in the history
…odule

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 #16532)

(cherry picked from commit c6ee5d5)
  • Loading branch information
levitte committed Sep 8, 2021
1 parent ced5078 commit 03943ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/recipes/90-test_fipsload.t
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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");

0 comments on commit 03943ae

Please sign in to comment.