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

ruby-changes:34051

From: nobu <ko1@a...>
Date: Mon, 26 May 2014 14:38:21 +0900 (JST)
Subject: [ruby-changes:34051] nobu:r46132 (trunk): test/ruby: fix leaked threads

nobu	2014-05-26 14:38:10 +0900 (Mon, 26 May 2014)

  New Revision: 46132

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

  Log:
    test/ruby: fix leaked threads
    
    * test/thread/test_backtrace.rb: join work threads not to leak
      threads.

  Modified files:
    trunk/test/ruby/test_backtrace.rb
Index: test/ruby/test_backtrace.rb
===================================================================
--- test/ruby/test_backtrace.rb	(revision 46131)
+++ test/ruby/test_backtrace.rb	(revision 46132)
@@ -195,6 +195,7 @@ class TestBacktrace < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_backtrace.rb#L195
       assert_equal(n, th.backtrace_locations(0, n + 1).size)
     ensure
       q << true
+      th.join
     end
   end
 

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

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