From 2df2cdcff0b0358ebc98a43181b5271632563a68 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sun, 26 May 2019 17:25:16 +0900 Subject: [PATCH] test/ruby/test_process.rb: Use EnvUtil.timeout for timeout scale factor https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11s-sunc/ruby-master/log/20190526T052508Z.fail.html.gz --- test/ruby/test_process.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index c3ee401a28..ba7126912b 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1724,7 +1724,7 @@ class TestProcess < Test::Unit::TestCase with_tmpchdir do assert_nothing_raised('[ruby-dev:12261]') do - Timeout.timeout(3) do + EnvUtil.timeout(3) do pid = spawn('yes | ls') Process.waitpid pid end @@ -1796,7 +1796,7 @@ class TestProcess < Test::Unit::TestCase end else # darwin def test_daemon_no_threads - data = Timeout.timeout(3) do + data = EnvUtil.timeout(3) do IO.popen("-") do |f| break f.readlines.map(&:chomp) if f th = Thread.start {sleep 3} @@ -2311,7 +2311,7 @@ EOS def test_signals_work_after_exec_fail r, w = IO.pipe pid = status = nil - Timeout.timeout(30) do + EnvUtil.timeout(30) do pid = fork do r.close begin @@ -2345,7 +2345,7 @@ EOS def test_threading_works_after_exec_fail r, w = IO.pipe pid = status = nil - Timeout.timeout(90) do + EnvUtil.timeout(90) do pid = fork do r.close begin