diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-12 08:33:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-12 08:33:20 +0000 |
commit | a6747a099379b9347fb56c9b9342b4f9d40d7680 (patch) | |
tree | 7a133e00e665b01d7e544abb413454a843c19e73 /test/openssl/test_cipher.rb | |
parent | 2049c58dfd7accccc719fba6eeb8e3c8c6e53045 (diff) | |
download | ruby-a6747a099379b9347fb56c9b9342b4f9d40d7680.tar.gz |
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
Diffstat (limited to 'test/openssl/test_cipher.rb')
-rw-r--r-- | test/openssl/test_cipher.rb | 5 |
1 files changed, 4 insertions, 1 deletions
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 } |