Fix the rehash test on Windows
The openssl rehash command is not available on some platforms including Windows. This change skips the associated tests if rehash is not available. Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
e15a18de96
commit
1556d21850
@ -10,6 +10,11 @@ use OpenSSL::Test qw/:DEFAULT top_file/;
|
|||||||
|
|
||||||
setup("test_rehash");
|
setup("test_rehash");
|
||||||
|
|
||||||
|
#If "openssl rehash -help" fails it's most likely because we're on a platform
|
||||||
|
#that doesn't support the rehash command (e.g. Windows)
|
||||||
|
plan skip_all => "test_rehash is not available on this platform"
|
||||||
|
unless run(app(["openssl", "rehash", "-help"]));
|
||||||
|
|
||||||
plan tests => 5;
|
plan tests => 5;
|
||||||
|
|
||||||
indir "rehash.$$" => sub {
|
indir "rehash.$$" => sub {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user