[前][次][番号順一覧][スレッド一覧]

ruby-changes:37498

From: nobu <ko1@a...>
Date: Fri, 13 Feb 2015 11:06:44 +0900 (JST)
Subject: [ruby-changes:37498] nobu:r49579 (trunk): test_cipher.rb: ignore wrap mode erros

nobu	2015-02-13 11:06:31 +0900 (Fri, 13 Feb 2015)

  New Revision: 49579

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49579

  Log:
    test_cipher.rb: ignore wrap mode erros
    
    * test/openssl/test_cipher.rb (test_ciphers): ignore wrap mode
      errors if "wrap" is contained in the name.  seems no explicit
      rules.
      http://rubyci.blob.core.windows.net/fedora21/ruby-trunk/log/20150213T001502Z.fail.html.gz

  Modified files:
    trunk/test/openssl/test_cipher.rb
Index: test/openssl/test_cipher.rb
===================================================================
--- test/openssl/test_cipher.rb	(revision 49578)
+++ test/openssl/test_cipher.rb	(revision 49579)
@@ -107,10 +107,7 @@ class OpenSSL::TestCipher < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/openssl/test_cipher.rb#L107
         begin
           assert_kind_of(OpenSSL::Cipher::Cipher, OpenSSL::Cipher::Cipher.new(name))
         rescue OpenSSL::Cipher::CipherError => e
-          if e.message == 'wrap mode not allowed'
-            assert_match(/wrap\z/, name, e.message)
-            next
-          end
+          next if /wrap/ =~ name and e.message == 'wrap mode not allowed'
           raise
         end
       }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]