1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_rinda.rb: give up stabilizing this test

on --jit-wait. It's randomly failing and it's unlikely to be detecting
any MJIT's bug.

https://app.wercker.com/ruby/ruby/runs/mjit-test2/5c5c2339940b5200f01a0822?step=5c5c2b9fcfa0fc000741d940

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2019-02-07 13:57:27 +00:00
parent 910b13fe51
commit 8ca727d80f

View file

@ -657,6 +657,7 @@ class TestRingServer < Test::Unit::TestCase
end
def test_do_reply_local
skip 'timeout-based test becomes unstable with --jit-wait' if RubyVM::MJIT.enabled?
with_timeout(10) {_test_do_reply_local}
end
@ -788,7 +789,6 @@ class TestRingServer < Test::Unit::TestCase
private
def with_timeout(n)
n *= 10 if RubyVM::MJIT.enabled? # for --jit-wait
aoe = Thread.abort_on_exception
Thread.abort_on_exception = true
tl0 = Thread.list
@ -822,7 +822,6 @@ class TestRingServer < Test::Unit::TestCase
end
def wait_for(n)
n *= 10 if RubyVM::MJIT.enabled? # for --jit-wait
t = n + Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)
until yield
if t < Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)