Skip to content

Commit de4580e

Browse files
committed
tests: ci fix
1 parent 379635b commit de4580e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

t/164-proxy-ssl-verify-by.t

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ repeat_each(3);
77
my $NginxBinary = $ENV{'TEST_NGINX_BINARY'} || 'nginx';
88
my $openssl_version = eval { `$NginxBinary -V 2>&1` };
99

10-
if ($openssl_version =~ m/built with OpenSSL (0\S*|1\.0\S*|1\.1\.0\S*)/) {
11-
plan(skip_all => "too old OpenSSL, need 1.1.1, was $1");
10+
if ($openssl_version =~ m/built with OpenSSL (\d+)\.(\d+)\.(\d+)/) {
11+
my ($major, $minor, $patch) = ($1, $2, $3);
12+
13+
if ($major < 3 || ($major == 3 && $minor == 0 && $patch < 2)) {
14+
plan(skip_all => "too old OpenSSL, need >= 3.0.2, was " .
15+
"$major.$minor.$patch");
16+
}
1217
} else {
1318
plan tests => repeat_each() * (blocks() * 6 + 5);
1419
}

0 commit comments

Comments
 (0)