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

test/drb/drbtest.rb: Skip test_06_timeout on Solaris10s

The test seems to have a race condition, which fails on very slow
machine like Solaris10s.  So skip it.

In addition, this change restores timeout guard that was removed at
0660d7cb53.  This is because the test gets
stuck forever when something wrong occurs.  It is better to fail the
test than stuck.
This commit is contained in:
Yusuke Endoh 2019-09-02 22:30:12 +09:00
parent 8b2e1ca10e
commit 53a7abe2cd

View file

@ -207,12 +207,15 @@ module DRbCore
def test_06_timeout def test_06_timeout
skip if RUBY_PLATFORM.include?("armv7l-linux") skip if RUBY_PLATFORM.include?("armv7l-linux")
ten = Onecky.new(10) skip if RUBY_PLATFORM.include?("sparc-solaris2.10")
assert_raise(Timeout::Error) do Timeout.timeout(60) do
@there.do_timeout(ten) ten = Onecky.new(10)
end assert_raise(Timeout::Error) do
assert_raise(Timeout::Error) do @there.do_timeout(ten)
@there.do_timeout(ten) end
assert_raise(Timeout::Error) do
@there.do_timeout(ten)
end
end end
end end