1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress warning: OpenSSL::X509::StoreContext#cleanup is deprecated with no replacement

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-03-23 14:21:22 +00:00
parent 813ba53bbc
commit 338456ad94

View file

@ -1,3 +1,4 @@
require_relative "../ruby/envutil"
require_relative "utils"
if defined?(OpenSSL)
@ -21,7 +22,9 @@ class OpenSSL::TestX509Store < Test::Unit::TestCase
cert = OpenSSL::X509::Certificate.new
store = OpenSSL::X509::Store.new
ctx = OpenSSL::X509::StoreContext.new(store, cert, [])
ctx.cleanup
EnvUtil.suppress_warning do
ctx.cleanup
end
ctx.verify
end