mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	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:
		
							parent
							
								
									2049c58dfd
								
							
						
					
					
						commit
						a6747a0993
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
      }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue