提交 c02bcb66 编写于 作者: R Richard Levitte

Have 70-test_clienthello.t be selective on when it can be run

The test program clienthello checks TLS extensions, so there's no
point running it when no TLS protocol is available.
Reviewed-by: NBen Laurie <ben@openssl.org>
上级 1fff160b
#! /usr/bin/perl #! /usr/bin/perl
use OpenSSL::Test::Simple; use OpenSSL::Test;
use OpenSSL::Test::Utils;
simple_test("test_clienthello", "clienthellotest"); setup("test_clienthello");
plan skip_all => "No TLS/SSL protocols are supported by this OpenSSL build"
if alldisabled(grep { $_ ne "ssl3" } available_protocols("tls"));
plan tests => 1;
ok(run(test(["clienthellotest"])), "running clienthellotest");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册