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

test/ruby/test_rubyoptions.rb (test_script_from_stdin): scale timeout

for Solaris.

https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190525T131909Z.fail.html.gz
This commit is contained in:
Yusuke Endoh 2019-05-26 09:48:38 +09:00
parent 208ed56e57
commit a516834b47

View file

@ -790,8 +790,9 @@ class TestRubyOptions < Test::Unit::TestCase
m.print("\C-d")
pid = spawn(EnvUtil.rubybin, :in => s, :out => w)
w.close
timeout = EnvUtil.apply_timeout_scale(3)
assert_nothing_raised('[ruby-dev:37798]') do
result = Timeout.timeout(3) {r.read}
result = Timeout.timeout(timeout) {r.read}
end
Process.wait pid
}