Issue #6751 has been reported by akr (Akira Tanaka).

----------------------------------------
Bug #6751: remove tempfiles early.
https://bugs.ruby-lang.org/issues/6751

Author: akr (Akira Tanaka)
Status: Assigned
Priority: Normal
Assignee: xibbar (Takeyuki Fujioka)
Category: lib
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-07-18 trunk 36442) [x86_64-linux]


cgi.rb ??с???????潟?????????<?ゃ?? (Tempfile) ?????????鴻?????????????????????????????
?????????с????????????????с??????????????

????????? GC ??ф???????????????????с??Bug ?????????祉??荅??с????????障???????????

./ruby test/runner.rb test/cgi ?????????鴻????с????潟?????????<?ゃ???罧?????????????????
????????????? cgi-tempfile.patch ??????????c??帥?障????????

* read_multipart ??? params ???ャ???????????????????ф?????
* read_multipart ??т??紊????莎激?????????????????т????c????????????鴻??????
* ?????鴻???????т????c????????????鴻?????腟????????????????

????????????鴻??罸?????c??????????腆肴???????????篁ヤ?????????????????????障????????

Index: lib/minitest/unit.rb
===================================================================
--- lib/minitest/unit.rb	(revision 36442)
+++ lib/minitest/unit.rb	(working copy)
@@ -1082,6 +1082,10 @@ module MiniTest
           end
           trap 'INFO', 'DEFAULT' if SUPPORTS_INFO_SIGNAL
         end
+        if !(live_tempfiles = ObjectSpace.each_object(Tempfile).find_all {|t| t.path }).empty?
+          puts nil, "after #{self.__name__}", *live_tempfiles.map {|t| t.inspect }
+          live_tempfiles.each {|t| t.unlink }
+        end
         result
       end

??????с??????????????



-- 
http://bugs.ruby-lang.org/