From 07a0b68a85be84fa11ad63e60faeec4e4fd02490 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 3 Feb 2026 15:02:16 +0900 Subject: apply timeout scale in wait_exception to avoid such case: ``` 1) Failure: TestProcess#test_wait_exception [/tmp/ruby/src/trunk-asserts-nopara/test/ruby/test_process.rb:1588]: [ruby-dev:49176] [Bug #11340]: 3.696015712 seconds to interrupt Process.wait. Expected 3.696015712 to be < 3. ``` --- test/ruby/test_process.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index b3a88b664c..56a3c3d18f 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1568,7 +1568,7 @@ class TestProcess < Test::Unit::TestCase def test_wait_exception bug11340 = '[ruby-dev:49176] [Bug #11340]' t0 = t1 = nil - sec = 3 + sec = EnvUtil.apply_timeout_scale(3) code = "puts;STDOUT.flush;Thread.start{gets;exit};sleep(#{sec})" IO.popen([RUBY, '-e', code], 'r+') do |f| pid = f.pid -- cgit v1.2.3