summaryrefslogtreecommitdiff
path: root/test/lib/minitest
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-25 23:00:04 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-25 23:00:04 +0000
commit1902f5fa2565d206ce17c4fc87f190dae20a36d0 (patch)
treef4f099ce0c00246a29f487675e52195bbd0b7f99 /test/lib/minitest
parent0aa197c6f2740ba9ed5e543737965164a356781e (diff)
* test/lib/minitest/unit.rb: Show Finished threads line-by-line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/minitest')
-rw-r--r--test/lib/minitest/unit.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb
index a27926b..444e56e 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?