ruby-changes:55848
From: Yusuke <ko1@a...>
Date: Sun, 26 May 2019 17:26:11 +0900 (JST)
Subject: [ruby-changes:55848] Yusuke Endoh: 2df2cdcff0 (trunk): test/ruby/test_process.rb: Use EnvUtil.timeout for timeout scale factor
https://git.ruby-lang.org/ruby.git/commit/?id=2df2cdcff0 From 2df2cdcff0b0358ebc98a43181b5271632563a68 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sun, 26 May 2019 17:25:16 +0900 Subject: 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 diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index c3ee401..ba71269 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1724,7 +1724,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1724 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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1796 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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L2311 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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L2345 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/