diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-31 11:16:02 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-31 11:16:02 +0000 |
commit | 4382bf9f15678d2555bf4c36cd7d36311508890e (patch) | |
tree | 4be5ffb111e7d9c730877ffea45d859006a5c507 /test | |
parent | 554dcdb632f889938076482e6e91d5a7a9d47e9d (diff) | |
download | ruby-4382bf9f15678d2555bf4c36cd7d36311508890e.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/openssl/test_pair.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |