mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* test/ruby/test_process.rb (TestProcess#test_too_long_path)
TestProcess#test_too_long_path): Reduced string size from 100MB to 10MB. 100MB may cause no memory error. It isn't intended. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									7bae5dd370
								
							
						
					
					
						commit
						41bbb319dd
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,9 @@
 | 
			
		|||
Fri Jan 28 01:33:51 2011  KOSAKI Motohiro  <kosaki.motohiro@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* test/ruby/test_process.rb (TestProcess#test_too_long_path)
 | 
			
		||||
	  TestProcess#test_too_long_path): Reduced string size from 100MB
 | 
			
		||||
	  to 10MB. 100MB may cause no memory error. It isn't intended.
 | 
			
		||||
 | 
			
		||||
Fri Jan 28 01:27:42 2011  KOSAKI Motohiro  <kosaki.motohiro@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* test/ruby/test_process.rb (TestProcess#test_too_long_path2):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1234,11 +1234,11 @@ class TestProcess < Test::Unit::TestCase
 | 
			
		|||
 | 
			
		||||
  def test_too_long_path
 | 
			
		||||
    bug4314 = '[ruby-core:34842]'
 | 
			
		||||
    assert_raise(Errno::ENOENT, bug4314) {Process.spawn("a" * 100_000_000)}
 | 
			
		||||
    assert_raise(Errno::ENOENT, bug4314) {Process.spawn("a" * 10_000_000)}
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def test_too_long_path2
 | 
			
		||||
    bug4315 = '[ruby-core:34833]'
 | 
			
		||||
    assert_raise(Errno::ENOENT, bug4315) {Process.spawn('"a"|'*100_000_000)}
 | 
			
		||||
    assert_raise(Errno::ENOENT, bug4315) {Process.spawn('"a"|'*10_000_000)}
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue