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

ruby-changes:46268

From: nobu <ko1@a...>
Date: Sun, 16 Apr 2017 13:16:15 +0900 (JST)
Subject: [ruby-changes:46268] nobu:r58369 (trunk): test/ruby/test_io.rb: use Thread.stop? to wait

nobu	2017-04-16 13:16:11 +0900 (Sun, 16 Apr 2017)

  New Revision: 58369

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

  Log:
    test/ruby/test_io.rb: use Thread.stop? to wait

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 58368)
+++ test/ruby/test_io.rb	(revision 58369)
@@ -3414,7 +3414,7 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3414
           end
         end
         q.pop
-        sleep 0.01 while thread.status != 'sleep'
+        sleep 0.01 until thread.stop?
         r.close
         assert_raise_with_message(IOError, /stream closed/) do
           thread.join

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

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