diff options
author | Matt Caswell <matt@openssl.org> | 2016-06-14 14:35:26 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-16 16:32:14 +0100 |
commit | b02b57431718b74ddaf24cc3db004f145311abac (patch) | |
tree | 25e749bb160539124071b5026df4f2b7971bd772 /test/recipes/70-test_sslextension.t | |
parent | b84e12266f85156f58804ff94ea110890f13b52d (diff) | |
download | openssl-b02b57431718b74ddaf24cc3db004f145311abac.tar.gz |
Skip the TLSProxy tests if environmental problems are an issue
On some platforms we can't startup the TLSProxy due to environmental
problems (e.g. network set up on the build machine). These aren't OpenSSL
problems so we shouldn't treat them as test failures. Just visibly
indicate that we are skipping the test.
We only skip the first time we attempt to start up the proxy. If that works
then everything else should do...if not we should probably investigate and
so report as a failure.
This also removes test_networking...there is a danger that this turns into
a test of user's environmental set up rather than OpenSSL.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test/recipes/70-test_sslextension.t')
-rwxr-xr-x | test/recipes/70-test_sslextension.t | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/recipes/70-test_sslextension.t b/test/recipes/70-test_sslextension.t index 1084c9674d..7f69f649b3 100755 --- a/test/recipes/70-test_sslextension.t +++ b/test/recipes/70-test_sslextension.t @@ -34,10 +34,9 @@ my $proxy = TLSProxy::Proxy->new( (!$ENV{HARNESS_ACTIVE} || $ENV{HARNESS_VERBOSE}) ); -plan tests => 3; - # Test 1: Sending a zero length extension block should pass -$proxy->start(); +$proxy->start() or plan skip_all => "Unable to start up Proxy for tests"; +plan tests => 3; ok(TLSProxy::Message->success, "Zero extension length test"); sub extension_filter @@ -111,4 +110,3 @@ $proxy->clear(); $proxy->filter(\&inject_duplicate_extension_serverhello); $proxy->start(); ok(TLSProxy::Message->fail(), "Duplicate ServerHello extension"); - |