1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/lib/minitest/unit.rb: Use Thread.list instead of

ObjectSpace.each_object(Thread).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-05-25 07:58:02 +00:00
parent f414bfc681
commit 70c15b19fa
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun May 25 16:54:06 2014 Tanaka Akira <akr@fsij.org>
* test/lib/minitest/unit.rb: Use Thread.list instead of
ObjectSpace.each_object(Thread).
Sun May 25 15:53:54 2014 Tanaka Akira <akr@fsij.org>
* lib/rinda/ring.rb (Rinda::RingServer#shutdown): Join the killed

View file

@ -947,7 +947,7 @@ module MiniTest
end
def live_thread_and_tempfile
live_threads = ObjectSpace.each_object(Thread).find_all {|t|
live_threads = Thread.list.find_all {|t|
t != Thread.current && t.alive?
}
if defined? Tempfile