aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-21 00:56:09 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-21 00:56:09 +0000
commit48bfcdb4a04557c500eef06e3f7ea97859015fae (patch)
tree32c67a9dc07a1472579e3a8e6e5cfc53231e6a59
parentc0ffccf722b0c749dc37b34b425981f13375010c (diff)
downloadruby-48bfcdb4a04557c500eef06e3f7ea97859015fae.tar.gz
test/ruby/bug-13526.rb: should wait until all threads are stopped
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/bug-13526.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/bug-13526.rb b/test/ruby/bug-13526.rb
index e0b8e981cc..50c6c67a7d 100644
--- a/test/ruby/bug-13526.rb
+++ b/test/ruby/bug-13526.rb
@@ -18,5 +18,5 @@ threads = Array.new(n) do
end
end
-Thread.pass while threads.all?(&:stop?)
+Thread.pass until threads.all?(&:stop?)
1000.times { Thread.pass }