diff options
author | Richard Levitte <levitte@openssl.org> | 2022-03-10 13:29:25 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2022-03-12 11:00:07 +0100 |
commit | abdb2278d2b65ae87bee3121be83322e4219b396 (patch) | |
tree | 47a39356dfaaa55af782e5f5d265202979d4dc23 /test | |
parent | c8c923454b52d64234c941553d81143918e502ea (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)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/20-test_dgst.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/recipes/20-test_dgst.t b/test/recipes/20-test_dgst.t index e72038d852..ff067155c4 100644 --- a/test/recipes/20-test_dgst.t +++ b/test/recipes/20-test_dgst.t @@ -12,7 +12,7 @@ use warnings; use File::Spec; use File::Basename; -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/; |