summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-02-17 14:59:44 +0100
committerRichard Levitte <levitte@openssl.org>2017-02-17 15:20:26 +0100
commit1320d2501d0c9c6ad9ea0dc1f5115f4e6b3e0c3b (patch)
tree46177145333e8ee53676ad0d9d9377771358ce8a /test
parent949bd8e45eb4d2697d20c2249fa42cba545da2ac (diff)
Fix test_x509_store
Don't run this test unless 'openssl rehash' works properly. Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2664) (cherry picked from commit 73540f4729bb856ab066c6e7a57513a97e3ca36f)
Diffstat (limited to 'test')
-rw-r--r--test/recipes/60-test_x509_store.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/recipes/60-test_x509_store.t b/test/recipes/60-test_x509_store.t
index b084ed956f..041aa097df 100644
--- a/test/recipes/60-test_x509_store.t
+++ b/test/recipes/60-test_x509_store.t
@@ -16,6 +16,11 @@ use OpenSSL::Test qw/:DEFAULT srctop_file/;
setup("test_x509_store");
+#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"]));
+
# We use 'openssl verify' for these tests, as it contains everything
# we need to conduct these tests. The tests here are a subset of the
# ones found in 25-test_verify.t