summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-09-22 15:16:29 +0100
committerMatt Caswell <matt@openssl.org>2015-09-22 23:27:33 +0100
commit1556d21850aabf31c554d3c6de2363979a965a9f (patch)
tree3c7727cb79d9492d2a5cf4c1e3d9be31b550ed10 /test
parente15a18de96b8c948cc69df35aba7e1e245f6c999 (diff)
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>
Diffstat (limited to 'test')
-rw-r--r--test/recipes/40-test_rehash.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/recipes/40-test_rehash.t b/test/recipes/40-test_rehash.t
index 4f0d71fbd2..c4c6abcd93 100644
--- a/test/recipes/40-test_rehash.t
+++ b/test/recipes/40-test_rehash.t
@@ -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 {