mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* test/logger/test_logger.rb (TestLogDevice#test_write): check
also error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									86a81951b1
								
							
						
					
					
						commit
						f04debed3b
					
				
					 2 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Wed Oct 21 08:17:17 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* test/logger/test_logger.rb (TestLogDevice#test_write): check
 | 
			
		||||
	  also error message.
 | 
			
		||||
 | 
			
		||||
Wed Oct 21 03:54:41 2009  Marc-Andre Lafortune  <ruby-core@marc-andre.ca>
 | 
			
		||||
 | 
			
		||||
	* lib/matrix.rb:  
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -328,13 +328,19 @@ class TestLogDevice < Test::Unit::TestCase
 | 
			
		|||
    assert_equal("msg2\n\n", msg)
 | 
			
		||||
    #
 | 
			
		||||
    logdev = d(LogExcnRaiser.new)
 | 
			
		||||
    class << (stderr = '')
 | 
			
		||||
      alias write <<
 | 
			
		||||
    end
 | 
			
		||||
    $stderr, stderr = stderr, $stderr
 | 
			
		||||
    begin
 | 
			
		||||
      assert_nothing_raised do
 | 
			
		||||
        logdev.write('hello')
 | 
			
		||||
      end
 | 
			
		||||
    ensure
 | 
			
		||||
      logdev.close
 | 
			
		||||
      $stderr, stderr = stderr, $stderr
 | 
			
		||||
    end
 | 
			
		||||
    assert_equal "log writing failed. disk is full\n", stderr
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def test_close
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue