summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2026-02-03 15:02:16 +0900
committerKoichi Sasada <ko1@atdot.net>2026-02-03 17:17:19 +0900
commit07a0b68a85be84fa11ad63e60faeec4e4fd02490 (patch)
tree1eb1d045df2551e3237814d073e7e6de6f4acef4
parent25422c0d0733f50367c5533c7c4b326426848528 (diff)
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. ```
-rw-r--r--test/ruby/test_process.rb2
1 files changed, 1 insertions, 1 deletions
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