ruby-changes:51591
From: normal <ko1@a...>
Date: Sat, 30 Jun 2018 17:38:44 +0900 (JST)
Subject: [ruby-changes:51591] normal:r63802 (trunk): fix r63799 ("test/ruby/test_rubyoptions.rb: improve diagnostics for failures")
normal 2018-06-30 17:38:36 +0900 (Sat, 30 Jun 2018) New Revision: 63802 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63802 Log: fix r63799 ("test/ruby/test_rubyoptions.rb: improve diagnostics for failures") CI machines are faster than mine :x Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 63801) +++ test/ruby/test_rubyoptions.rb (revision 63802) @@ -591,7 +591,8 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L591 pid = spawn(EnvUtil.rubybin, "test-script") ps = nil - stop = Process.clock_gettime(Process::CLOCK_MONOTONIC) + 30 + now = Process.clock_gettime(Process::CLOCK_MONOTONIC) + stop = now + 30 begin sleep 0.1 ps = `#{PSCMD.join(' ')} #{pid}` @@ -620,7 +621,8 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L621 pid = spawn(EnvUtil.rubybin, "test-script") ps = nil - stop = Process.clock_gettime(Process::CLOCK_MONOTONIC) + 30 + now = Process.clock_gettime(Process::CLOCK_MONOTONIC) + stop = now + 30 begin sleep 0.1 ps = `#{PSCMD.join(' ')} #{pid}` -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/