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

ruby-changes:40976

From: nobu <ko1@a...>
Date: Sat, 12 Dec 2015 18:03:43 +0900 (JST)
Subject: [ruby-changes:40976] nobu:r53055 (trunk): test_thread.rb: stay alive

nobu	2015-12-12 18:03:33 +0900 (Sat, 12 Dec 2015)

  New Revision: 53055

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

  Log:
    test_thread.rb: stay alive
    
    * test/ruby/test_thread.rb (test_thread_name): the target
      thread needs to stay alive till the end of this test, so that
      inspected result would not change.

  Modified files:
    trunk/test/ruby/test_thread.rb
Index: test/ruby/test_thread.rb
===================================================================
--- test/ruby/test_thread.rb	(revision 53054)
+++ test/ruby/test_thread.rb	(revision 53055)
@@ -1050,7 +1050,7 @@ q.pop https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L1050
   end
 
   def test_thread_name
-    t = Thread.start {}
+    t = Thread.start {sleep}
     assert_nil t.name
     s = t.inspect
     t.name = 'foo'

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

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