mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Show leaked threads line-by-line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									fc85af7bc4
								
							
						
					
					
						commit
						c8660d8966
					
				
					 2 changed files with 8 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -974,8 +974,10 @@ module MiniTest
 | 
			
		|||
      end
 | 
			
		||||
      thread_retained = live2 - live1
 | 
			
		||||
      if !thread_retained.empty?
 | 
			
		||||
        list = thread_retained.map {|t| ' ' + t.inspect }.sort.join
 | 
			
		||||
        puts "Leaked threads: #{inst.class}\##{inst.__name__}:#{list}"
 | 
			
		||||
        list = thread_retained.map {|t| t.inspect }.sort
 | 
			
		||||
        list.each {|str|
 | 
			
		||||
          puts "Leaked thread: #{inst.class}\##{inst.__name__}: #{str}"
 | 
			
		||||
        }
 | 
			
		||||
      end
 | 
			
		||||
      live2
 | 
			
		||||
    end
 | 
			
		||||
| 
						 | 
				
			
			@ -998,7 +1000,7 @@ module MiniTest
 | 
			
		|||
      end
 | 
			
		||||
      tempfile_retained = live2 - live1
 | 
			
		||||
      if !tempfile_retained.empty?
 | 
			
		||||
        list = tempfile_retained.map {|t| ' ' + t.inspect }.sort
 | 
			
		||||
        list = tempfile_retained.map {|t| t.inspect }.sort
 | 
			
		||||
        list.each {|str|
 | 
			
		||||
          puts "Leaked tempfile: #{name}: #{str}"
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue