ruby-changes:34821
From: nobu <ko1@a...>
Date: Wed, 23 Jul 2014 14:37:17 +0900 (JST)
Subject: [ruby-changes:34821] nobu:r46904 (trunk): test_x509req.rb: fix for RHEL7
nobu 2014-07-23 14:37:09 +0900 (Wed, 23 Jul 2014) New Revision: 46904 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46904 Log: test_x509req.rb: fix for RHEL7 * test/openssl/test_x509req.rb (test_sign_and_verify_rsa_md5): fix exception to be rescued. Modified files: trunk/test/openssl/test_x509req.rb Index: test/openssl/test_x509req.rb =================================================================== --- test/openssl/test_x509req.rb (revision 46903) +++ test/openssl/test_x509req.rb (revision 46904) @@ -116,7 +116,7 @@ class OpenSSL::TestX509Request < Test::U https://github.com/ruby/ruby/blob/trunk/test/openssl/test_x509req.rb#L116 assert_equal(false, request_error_returns_false { req.verify(@dsa512) }) req.subject = OpenSSL::X509::Name.parse("/C=JP/CN=FooBar") assert_equal(false, req.verify(@rsa2048)) - rescue OpenSSL::X509::CertificateError # RHEL7 disables MD5 + rescue OpenSSL::X509::RequestError # RHEL7 disables MD5 end def test_sign_and_verify_dsa -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/