Skip to content

Commit 2dadd06

Browse files
committed
Fix test counting in SSL tests
The branch that does not support tls-server-end-point runs more tests, so we need to structure the test counting dynamically. Reviewed-by: Michael Paquier <michael@paquier.xyz>
1 parent 06ca148 commit 2dadd06

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/test/ssl/t/002_scram.pl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@
88
use ServerSetup;
99
use File::Copy;
1010

11-
if ($ENV{with_openssl} eq 'yes')
12-
{
13-
plan tests => 6;
14-
}
15-
else
11+
if ($ENV{with_openssl} ne 'yes')
1612
{
1713
plan skip_all => 'SSL not supported by this build';
1814
}
1915

16+
my $number_of_tests = 6;
17+
2018
# This is the hostname used to connect to the server.
2119
my $SERVERHOSTADDR = '127.0.0.1';
2220

@@ -70,8 +68,11 @@
7068
"scram_channel_binding=tls-server-end-point",
7169
qr/channel binding type "tls-server-end-point" is not supported by this build/,
7270
"SCRAM authentication with tls-server-end-point as channel binding");
71+
$number_of_tests++;
7372
}
7473
test_connect_fails($common_connstr,
7574
"scram_channel_binding=not-exists",
7675
qr/unsupported SCRAM channel-binding type/,
7776
"SCRAM authentication with invalid channel binding");
77+
78+
done_testing($number_of_tests);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy