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

ruby-changes:35142

From: nobu <ko1@a...>
Date: Wed, 20 Aug 2014 10:33:52 +0900 (JST)
Subject: [ruby-changes:35142] nobu:r47224 (trunk): test_thread.rb: let main thread exit from Thread.new

nobu	2014-08-20 10:33:40 +0900 (Wed, 20 Aug 2014)

  New Revision: 47224

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

  Log:
    test_thread.rb: let main thread exit from Thread.new
    
    * test/ruby/test_thread.rb (test_main_thread_status_at_exit): let
      the main thread run to ensure exiting from Thread.new.

  Modified files:
    trunk/test/ruby/test_thread.rb
Index: test/ruby/test_thread.rb
===================================================================
--- test/ruby/test_thread.rb	(revision 47223)
+++ test/ruby/test_thread.rb	(revision 47224)
@@ -820,6 +820,7 @@ _eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L820
     assert_in_out_err([], <<-'INPUT', ["false false aborting"], [])
 Thread.new(Thread.current) {|mth|
   begin
+    mth.run
     Thead.pass until mth.stop?
     p :mth_stopped # don't run if killed by rb_thread_terminate_all
   ensure

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

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