From 8ca727d80f9b25046f85d6cd2e1f68d2fa001760 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Thu, 7 Feb 2019 13:57:27 +0000 Subject: [PATCH] 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 --- test/rinda/test_rinda.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb index dcd6001884..3e569dca9e 100644 --- a/test/rinda/test_rinda.rb +++ b/test/rinda/test_rinda.rb @@ -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)