Permalink
Browse files

Suppress warning: OpenSSL::X509::StoreContext#cleanup is deprecated w…

…ith no replacement

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
nurse committed Mar 23, 2013
1 parent 813ba53 commit 338456ad94708c0ff4f057ed9e66da8cd34f69ae
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/openssl/test_x509store.rb
@@ -1,3 +1,4 @@
+require_relative "../ruby/envutil"
require_relative "utils"
if defined?(OpenSSL)
@@ -21,7 +22,9 @@ def test_nosegv_on_cleanup
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

0 comments on commit 338456a

Please sign in to comment.