From 835894d1383ac23b910d581144c35214591a445a Mon Sep 17 00:00:00 2001 From: Todd Short Date: Mon, 25 Jan 2016 12:44:15 -0500 Subject: [PATCH 1/1] RT4272: Unit tests fail when DTLS disabled Missing SKIP: block in SSL unit tests for DTLS and TLS version tests. Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte --- test/recipes/80-test_ssl.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/recipes/80-test_ssl.t b/test/recipes/80-test_ssl.t index e7472a208b..d0bb79a8d3 100644 --- a/test/recipes/80-test_ssl.t +++ b/test/recipes/80-test_ssl.t @@ -657,6 +657,7 @@ sub testssl { my $n = ((@protos+2) * (@protos+3))/2 - 2; my $ntests = $n * $n; plan tests => $ntests; + SKIP: { skip "TLS disabled", 1 if $ntests == 1; my $should; @@ -690,7 +691,7 @@ sub testssl { print STDERR "\nFailed: @args\n"; } ok($ok); - }}}} + }}}}} }; subtest 'DTLS Version min/max tests' => sub { @@ -703,6 +704,7 @@ sub testssl { my $n = ((@protos+2) * (@protos+3))/2 - 2; my $ntests = $n * $n; plan tests => $ntests; + SKIP: { skip "DTLS disabled", 1 if $ntests == 1; my $should; @@ -736,7 +738,7 @@ sub testssl { print STDERR "\nFailed: @args\n"; } ok($ok); - }}}} + }}}}} }; } -- 2.34.1