Commit 1556d218 authored by Matt Caswell's avatar Matt Caswell
Browse files

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: default avatarRichard Levitte <levitte@openssl.org>
parent e15a18de
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -10,6 +10,11 @@ use OpenSSL::Test qw/:DEFAULT top_file/;

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;

indir "rehash.$$" => sub {