提交 1556d218 编写于 作者: M Matt Caswell

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: NRichard Levitte <levitte@openssl.org>
上级 e15a18de
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册