ruby-changes:41446
From: nobu <ko1@a...>
Date: Wed, 13 Jan 2016 11:23:52 +0900 (JST)
Subject: [ruby-changes:41446] nobu:r53520 (trunk): test_thread.rb: wait for the thread to sleep
nobu 2016-01-13 11:24:07 +0900 (Wed, 13 Jan 2016) New Revision: 53520 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53520 Log: test_thread.rb: wait for the thread to sleep * test/ruby/test_thread.rb (test_thread_name): wait for the status of the subject thread to fix, so that the status does not change between two inspect methods. Modified files: trunk/test/ruby/test_thread.rb Index: test/ruby/test_thread.rb =================================================================== --- test/ruby/test_thread.rb (revision 53519) +++ test/ruby/test_thread.rb (revision 53520) @@ -1067,6 +1067,7 @@ q.pop https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L1067 def test_thread_name t = Thread.start {sleep} + sleep 0.001 until t.stop? assert_nil t.name s = t.inspect t.name = 'foo' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/