Skip to content

Commit 49391cc

Browse files
committed
modify test cases
1 parent 391639b commit 49391cc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

t/166-ssl-client-hello.t

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ use Test::Nginx::Socket::Lua;
44

55
repeat_each(3);
66

7-
plan tests => repeat_each() * (blocks() * 6 + 8);
7+
# All these tests need to have new openssl
8+
my $NginxBinary = $ENV{'TEST_NGINX_BINARY'} || 'nginx';
9+
my $openssl_version = eval { `$NginxBinary -V 2>&1` };
10+
11+
if ($openssl_version =~ m/built with OpenSSL (0\S*|1\.0\S*|1\.1\.0\S*)/) {
12+
plan(skip_all => "too old OpenSSL, need 1.1.1, was $1");
13+
} else {
14+
plan tests => repeat_each() * (blocks() * 6 + 8);
15+
}
816

917
$ENV{TEST_NGINX_HTML_DIR} ||= html_dir();
1018
$ENV{TEST_NGINX_MEMCACHED_PORT} ||= 11211;

0 commit comments

Comments
 (0)