提交 49dc5404 编写于 作者: R Richard Levitte

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