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

ruby-changes:37494

From: nobu <ko1@a...>
Date: Thu, 12 Feb 2015 17:33:33 +0900 (JST)
Subject: [ruby-changes:37494] nobu:r49575 (trunk): test_cipher.rb: show cipher name

nobu	2015-02-12 17:33:20 +0900 (Thu, 12 Feb 2015)

  New Revision: 49575

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

  Log:
    test_cipher.rb: show cipher name
    
    * test/openssl/test_cipher.rb (test_ciphers): show wrap mode
      cipher name, which does not end with "wrap".
      http://rubyci.blob.core.windows.net/fedora21/ruby-trunk/log/20150212T061502Z.fail.html.gz

  Modified files:
    trunk/test/openssl/test_cipher.rb
Index: test/openssl/test_cipher.rb
===================================================================
--- test/openssl/test_cipher.rb	(revision 49574)
+++ test/openssl/test_cipher.rb	(revision 49575)
@@ -107,7 +107,10 @@ 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
-          next if /wrap\z/ =~ name and e.message == 'wrap mode not allowed'
+          if e.message == 'wrap mode not allowed'
+            assert_match(/wrap\z/, name, e.message)
+            next
+          end
           raise
         end
       }

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

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