ruby-changes:38785
From: naruse <ko1@a...>
Date: Sat, 13 Jun 2015 17:56:22 +0900 (JST)
Subject: [ruby-changes:38785] naruse:r50866 (trunk): sleep thread until assertions
naruse 2015-06-13 17:56:11 +0900 (Sat, 13 Jun 2015) New Revision: 50866 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50866 Log: sleep thread until assertions Modified files: trunk/test/ruby/test_thread.rb Index: test/ruby/test_thread.rb =================================================================== --- test/ruby/test_thread.rb (revision 50865) +++ test/ruby/test_thread.rb (revision 50866) @@ -1048,9 +1048,11 @@ q.pop https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L1048 end def test_thread_name - t = Thread.start { } + t = Thread.start { sleep } t.name = 'foo' assert_equal 'foo', t.name + ensure + t.kill t.join end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/