diff options
author | hsbt <hsbt@ruby-lang.org> | 2015-10-31 11:16:02 +0000 |
---|---|---|
committer | hsbt <hsbt@ruby-lang.org> | 2015-10-31 11:16:02 +0000 |
commit | 811f4c572681ac0eefc8cda1377d9a917bbdd1e6 (patch) | |
tree | 749d3bd20c814427b2a26f1b145484d8ddbb8db8 /test/test_pair.rb | |
parent | ced283b124b03c3d26549dfc50a045c955e48525 (diff) | |
download | ruby-openssl-history-811f4c572681ac0eefc8cda1377d9a917bbdd1e6.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/test_pair.rb')
-rw-r--r-- | test/test_pair.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_pair.rb b/test/test_pair.rb index 977d11a..9324265 100644 --- a/test/test_pair.rb +++ b/test/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 |