fix r63799 ("test/ruby/test_rubyoptions.rb: improve diagnostics for failures")

CI machines are faster than mine :x

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2018-06-30 08:38:36 +00:00
Родитель 828f4bf448
Коммит e205271094
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -591,7 +591,8 @@ class TestRubyOptions < Test::Unit::TestCase
pid = spawn(EnvUtil.rubybin, "test-script") pid = spawn(EnvUtil.rubybin, "test-script")
ps = nil ps = nil
stop = Process.clock_gettime(Process::CLOCK_MONOTONIC) + 30 now = Process.clock_gettime(Process::CLOCK_MONOTONIC)
stop = now + 30
begin begin
sleep 0.1 sleep 0.1
ps = `#{PSCMD.join(' ')} #{pid}` ps = `#{PSCMD.join(' ')} #{pid}`
@ -620,7 +621,8 @@ class TestRubyOptions < Test::Unit::TestCase
pid = spawn(EnvUtil.rubybin, "test-script") pid = spawn(EnvUtil.rubybin, "test-script")
ps = nil ps = nil
stop = Process.clock_gettime(Process::CLOCK_MONOTONIC) + 30 now = Process.clock_gettime(Process::CLOCK_MONOTONIC)
stop = now + 30
begin begin
sleep 0.1 sleep 0.1
ps = `#{PSCMD.join(' ')} #{pid}` ps = `#{PSCMD.join(' ')} #{pid}`