зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
2049c58dfd
Коммит
a6747a0993
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче