diff options
Diffstat (limited to 'test/lib/minitest/unit.rb')
-rw-r--r-- | test/lib/minitest/unit.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb index a27926b3c7..444e56e634 100644 --- a/test/lib/minitest/unit.rb +++ b/test/lib/minitest/unit.rb @@ -969,8 +969,10 @@ module MiniTest def check_thread_leak(inst, live1, live2) thread_finished = live1 - live2 if !thread_finished.empty? - list = thread_finished.map {|t| ' ' + t.inspect }.sort.join - puts "Finished threads: #{inst.class}\##{inst.__name__}:#{list}" + list = thread_finished.map {|t| t.inspect }.sort + list.each {|str| + puts "Finished thread: #{inst.class}\##{inst.__name__}: #{str}" + } end thread_retained = live2 - live1 if !thread_retained.empty? |