diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-25 16:03:23 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-25 16:03:23 +0000 |
commit | b5d3b55bb74a06f706839731c3d808552ba82343 (patch) | |
tree | d5e19e30df210ad00fa4bf96cb4264a5940e5fdf /test/lib/minitest/unit.rb | |
parent | 8735e21fbbf609ea5c613f5ba828b1d6191c1c9b (diff) | |
download | ruby-b5d3b55bb74a06f706839731c3d808552ba82343.tar.gz |
* 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/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 7fdbc4b291..27c71b136b 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 |