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

ruby-changes:46242

From: ko1 <ko1@a...>
Date: Sat, 15 Apr 2017 03:19:42 +0900 (JST)
Subject: [ruby-changes:46242] ko1:r58357 (trunk): sync certainly.

ko1	2017-04-15 03:19:37 +0900 (Sat, 15 Apr 2017)

  New Revision: 58357

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

  Log:
    sync certainly.
    
    * test/ruby/test_io.rb (test_race_closed_stream): awit for 'sleep' state.

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 58356)
+++ test/ruby/test_io.rb	(revision 58357)
@@ -3412,7 +3412,7 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3412
         end
       end
       q.pop
-      sleep 0.1 # wait for blocking by r.gets
+      sleep 0.01 while thread.status != 'sleep'
       r.close
       assert_raise_with_message(IOError, /stream closed/) do
         thread.join

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

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