summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-01-27 18:31:08 +0100
committerRichard Levitte <levitte@openssl.org>2016-01-27 18:41:34 +0100
commit49dc5404dfbaaa52baeef43879f0d3f9bae582d0 (patch)
treee6396b04513e2b7e52f317b3dc80c2f59a404916 /test
parent57a143fd83bc0bed49a1eeeef8ab089ffad8a4fe (diff)
Skip all explicitely if the number of tests is 0
It seems that Test::More doesn't like 0 tests, a line like this raises an error and stops the recipe entirely: plan tests => 0; So we need to check for 0 tests beforehand and skip the subtest explicitely in that case. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test')
-rw-r--r--test/recipes/80-test_ssl.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/recipes/80-test_ssl.t b/test/recipes/80-test_ssl.t
index bcac431995..4039654732 100644
--- a/test/recipes/80-test_ssl.t
+++ b/test/recipes/80-test_ssl.t
@@ -470,6 +470,9 @@ sub testssl {
$protocolciphersuitcount += scalar @c;
$_ => [ @c ] } @protocols;
+ plan skip_all => "None of the ciphersuites to test are available in this OpenSSL build"
+ if $protocolciphersuitcount + scalar(@protocols) == 0;
+
# The count of protocols is because in addition to the ciphersuits
# we got above, we're running a weak DH test for each protocol
plan tests => $protocolciphersuitcount + scalar(@protocols);