mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Fix test
Followup to r62158 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									02d7ad9722
								
							
						
					
					
						commit
						59f502295f
					
				
					 1 changed files with 2 additions and 6 deletions
				
			
		| 
						 | 
					@ -170,13 +170,9 @@ class TestSystem < Test::Unit::TestCase
 | 
				
			||||||
    assert_raise(Errno::ENOENT) do
 | 
					    assert_raise(Errno::ENOENT) do
 | 
				
			||||||
      system('feature_14235', exception: true)
 | 
					      system('feature_14235', exception: true)
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
    assert_raise(RuntimeError) do
 | 
					    e = assert_raise(RuntimeError) do
 | 
				
			||||||
      system("'#{ruby}' -e 'exit 1'", exception: true)
 | 
					      system("'#{ruby}' -e 'exit 1'", exception: true)
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
    begin
 | 
					    assert_match /\ACommand failed with exit 1:/, e.message
 | 
				
			||||||
      system("'#{ruby}' -e 'exit 1'", exception: true)
 | 
					 | 
				
			||||||
    rescue RuntimeError => e
 | 
					 | 
				
			||||||
      assert_equal true, e.message.include?('status (1)')
 | 
					 | 
				
			||||||
    end
 | 
					 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue