summaryrefslogtreecommitdiff
path: root/test/lib/minitest
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-25 16:03:23 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-25 16:03:23 +0000
commitb5d3b55bb74a06f706839731c3d808552ba82343 (patch)
treed5e19e30df210ad00fa4bf96cb4264a5940e5fdf /test/lib/minitest
parent8735e21fbbf609ea5c613f5ba828b1d6191c1c9b (diff)
* test/lib/minitest/unit.rb: Show leaked tempfiles line-by-line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46120 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 7fdbc4b..27c71b1 100644
--- a/test/lib/minitest/unit.rb
+++ b/test/lib/minitest/unit.rb
@@ -998,8 +998,10 @@ module MiniTest
end
tempfile_retained = live2 - live1
if !tempfile_retained.empty?
- list = tempfile_retained.map {|t| ' ' + t.inspect }.sort.join
- puts "Leaked tempfiles: #{name}:#{list}"
+ list = tempfile_retained.map {|t| ' ' + t.inspect }.sort
+ list.each {|str|
+ puts "Leaked tempfile: #{name}: #{str}"
+ }
tempfile_retained.each {|t| t.unlink }
end
live2