ruby-changes:44732
From: kazu <ko1@a...>
Date: Wed, 16 Nov 2016 00:05:04 +0900 (JST)
Subject: [ruby-changes:44732] kazu:r56804 (trunk): Fix regexp and typo
kazu 2016-11-16 00:04:56 +0900 (Wed, 16 Nov 2016) New Revision: 56804 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56804 Log: Fix regexp and typo Modified files: trunk/test/thread/test_queue.rb Index: test/thread/test_queue.rb =================================================================== --- test/thread/test_queue.rb (revision 56803) +++ test/thread/test_queue.rb (revision 56804) @@ -520,9 +520,9 @@ class TestQueue < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/thread/test_queue.rb#L520 # No dead or finished threads, give up to 10 seconds to start running t = Time.now - Thread.pass until Time.now - t > 10 || (consumers + producers).all?{|thr| thr.status =~ /\Arun|sleep\Z/} + Thread.pass until Time.now - t > 10 || (consumers + producers).all?{|thr| thr.status =~ /\A(?:run|sleep)\z/} - assert (consumers + producers).all?{|thr| thr.status =~ /\Arun|sleep\Z/}, 'no threads runnning' + assert (consumers + producers).all?{|thr| thr.status =~ /\A(?:run|sleep)\z/}, 'no threads running' # just exercising the concurrency of the support methods. counter = Thread.new do -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/