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

ruby-changes:48754

From: eregon <ko1@a...>
Date: Tue, 21 Nov 2017 09:56:13 +0900 (JST)
Subject: [ruby-changes:48754] eregon:r60870 (trunk): test/ruby/bug-13526.rb: should wait until all threads are stopped

eregon	2017-11-21 09:56:09 +0900 (Tue, 21 Nov 2017)

  New Revision: 60870

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

  Log:
    test/ruby/bug-13526.rb: should wait until all threads are stopped

  Modified files:
    trunk/test/ruby/bug-13526.rb
Index: test/ruby/bug-13526.rb
===================================================================
--- test/ruby/bug-13526.rb	(revision 60869)
+++ test/ruby/bug-13526.rb	(revision 60870)
@@ -18,5 +18,5 @@ threads = Array.new(n) do https://github.com/ruby/ruby/blob/trunk/test/ruby/bug-13526.rb#L18
   end
 end
 
-Thread.pass while threads.all?(&:stop?)
+Thread.pass until threads.all?(&:stop?)
 1000.times { Thread.pass }

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

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