mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
openssl: workaround for Ubuntu's patched OpenSSL
* test/openssl/test_ssl.rb (test_ctx_options): Add a workaround for
patched OpenSSL to fix the Ruby CI failure on Ubuntu 16.04.
http://rubyci.s3.amazonaws.com/ubuntu/ruby-trunk/log/20160913T033003Z.fail.html.gz
This commit is a cherry-pick of the following commit at ruby/openssl:
f9c04779a8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a2879ac27b
commit
b4d0e5a4fb
1 changed files with 5 additions and 2 deletions
|
@ -10,10 +10,13 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase
|
|||
|
||||
assert (OpenSSL::SSL::OP_ALL & ctx.options) == OpenSSL::SSL::OP_ALL,
|
||||
"OP_ALL is set by default"
|
||||
ctx.options = 4
|
||||
assert_equal 4, ctx.options
|
||||
ctx.options = nil
|
||||
assert_equal OpenSSL::SSL::OP_ALL, ctx.options
|
||||
ctx.options = 4
|
||||
assert_equal 4, ctx.options & 4
|
||||
if ctx.options != 4
|
||||
pend "SSL_CTX_set_options() seems to be modified by distributor"
|
||||
end
|
||||
|
||||
assert_equal true, ctx.setup
|
||||
assert_predicate ctx, :frozen?
|
||||
|
|
Loading…
Reference in a new issue