From a8438d3033a87f93f7a3a8c6ce32f6279ca7ad84 Mon Sep 17 00:00:00 2001 From: hsbt Date: Sat, 31 Oct 2015 11:16:02 +0000 Subject: * test/openssl/test_pair.rb: skipped tests if openssl doesn't support ECDH cipher. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/openssl/test_pair.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb index 977d11a259..932426572f 100644 --- a/test/openssl/test_pair.rb +++ b/test/openssl/test_pair.rb @@ -372,6 +372,12 @@ module OpenSSL::TestPairM accepted = s2.accept assert called, 'ecdh callback should be called' + rescue OpenSSL::SSL::SSLError => e + if e.message =~ /no cipher match/ + skip "ECDH cipher not supported." + else + raise e + end ensure th.join if th s1.close if s1 -- cgit v1.2.3