[前][次][番号順一覧][スレッド一覧]

ruby-changes:34126

From: nobu <ko1@a...>
Date: Wed, 28 May 2014 15:22:15 +0900 (JST)
Subject: [ruby-changes:34126] nobu:r46207 (trunk): test/rake: avoid leaking threads

nobu	2014-05-28 15:22:09 +0900 (Wed, 28 May 2014)

  New Revision: 46207

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46207

  Log:
    test/rake: avoid leaking threads
    
    * test/rake/test_rake_task.rb (teardown): clean up thread pool to
      avoid leaking threads.

  Modified files:
    trunk/test/rake/test_rake_task.rb
Index: test/rake/test_rake_task.rb
===================================================================
--- test/rake/test_rake_task.rb	(revision 46206)
+++ test/rake/test_rake_task.rb	(revision 46207)
@@ -13,6 +13,7 @@ class TestRakeTask < Rake::TestCase https://github.com/ruby/ruby/blob/trunk/test/rake/test_rake_task.rb#L13
 
   def teardown
     Rake::TaskManager.record_task_metadata = false
+    Rake.application.thread_pool.join
 
     super
   end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]