From a6747a099379b9347fb56c9b9342b4f9d40d7680 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 12 Feb 2015 08:33:20 +0000 Subject: 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 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/openssl/test_cipher.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/openssl/test_cipher.rb b/test/openssl/test_cipher.rb index 81ded0ae52..954963acc5 100644 --- a/test/openssl/test_cipher.rb +++ b/test/openssl/test_cipher.rb @@ -107,7 +107,10 @@ class OpenSSL::TestCipher < Test::Unit::TestCase 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 } -- cgit v1.2.3