mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Enable checkers on parallel test.
parallel test (`make test-all TESTS=-j8`) runs tests on specified number of processes. However, some test checkers written in `runner.rb` are not loaded. This fix enable these checkers on parallel tests. See also: https://github.com/ruby/ruby/pull/2508
This commit is contained in:
		
							parent
							
								
									99d3043bd8
								
							
						
					
					
						commit
						84cbce3d88
					
				
					 3 changed files with 14 additions and 5 deletions
				
			
		|  | @ -39,7 +39,11 @@ class RubyVM::InstructionSequence | |||
|   end | ||||
| 
 | ||||
|   opt = ENV['RUBY_ISEQ_DUMP_DEBUG'] | ||||
|   puts "RUBY_ISEQ_DUMP_DEBUG = #{opt}" if opt | ||||
| 
 | ||||
|   if opt && caller.any?{|e| /test\/runner\.rb/ =~ e} | ||||
|     puts "RUBY_ISEQ_DUMP_DEBUG = #{opt}" if opt | ||||
|   end | ||||
| 
 | ||||
|   CHECK_TO_A      = 'to_a'      == opt | ||||
|   CHECK_TO_BINARY = 'to_binary' == opt | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Koichi Sasada
						Koichi Sasada