diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-05-26 17:25:16 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-05-26 17:25:16 +0900 |
commit | 2df2cdcff0b0358ebc98a43181b5271632563a68 (patch) | |
tree | d863b2a7bd913c8bd3a9f6aec765fa4e9736fc27 | |
parent | 4668a3a9da9f02b073631013e71722868ceafa53 (diff) |
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
-rw-r--r-- | test/ruby/test_process.rb | 8 |
1 files 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 |