summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2022-03-10 13:29:25 +0100
committerRichard Levitte <levitte@openssl.org>2022-03-12 11:09:42 +0100
commit84a9f7e0eae81245da28d552d40e197d579f3a9b (patch)
treea328f8c92cf8eb75ca15d255ebe50d1d68870066
parent568c44ee94f9d30af0c2c318c824021a83587c59 (diff)
Make ossltest engine use in test/recipes/20-test_dgst.t platform agnostic
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17861) (cherry picked from commit abdb2278d2b65ae87bee3121be83322e4219b396)
-rw-r--r--test/recipes/20-test_dgst.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/recipes/20-test_dgst.t b/test/recipes/20-test_dgst.t
index eb7f940ff5..a80ef9cf5d 100644
--- a/test/recipes/20-test_dgst.t
+++ b/test/recipes/20-test_dgst.t
@@ -11,7 +11,7 @@ use strict;
use warnings;
use File::Spec;
-use OpenSSL::Test qw/:DEFAULT with srctop_file bldtop_file/;
+use OpenSSL::Test qw/:DEFAULT with srctop_file bldtop_dir/;
use OpenSSL::Test::Utils;
setup("test_dgst");
@@ -113,8 +113,8 @@ SKIP: {
my $testdata = srctop_file('test', 'data.bin');
# intentionally using -engine twice, please do not remove the duplicate line
my @macdata = run(app(['openssl', 'dgst', '-sha1',
- '-engine', $^O eq 'linux' ? bldtop_file("engines", "ossltest.so") : "ossltest",
- '-engine', $^O eq 'linux' ? bldtop_file("engines", "ossltest.so") : "ossltest",
+ '-engine', "ossltest",
+ '-engine', "ossltest",
$testdata]), capture => 1);
chomp(@macdata);
my $expected = qr/SHA1\(\Q$testdata\E\)= 000102030405060708090a0b0c0d0e0f10111213/;