diff options
author | Koichi Sasada <[email protected]> | 2025-06-08 04:08:35 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2025-06-08 04:08:35 +0900 |
commit | 98ac3f1fe451789c2676956d09cdda6dee78f947 (patch) | |
tree | 6035d4505aa59c76c96af2f62477e0064c19752e | |
parent | 7d8695e02f15dc4c6cddb19f9c595dfc07e88682 (diff) |
increase timeout for high load env
I can reproduce timeout failure with the high load machine:
```
$ RUBY_MAX_CPU=100 ruby -e '100.times{Ractor.new{loop{}}}; sleep' &
$ while make test-all -o exts -o encs TESTS='ruby/gc -n /test_interrupt_in_finalizer/ --repeat-count=100'; do date; done
....
Finished(93/100) tests in 0.653434s, 1.5304 tests/s, 7.6519 assertions/s.
Finished(94/100) tests in 0.614422s, 1.6275 tests/s, 8.1377 assertions/s.
[1/1] TestGc#test_interrupt_in_finalizer = 11.08 s
1) Timeout:
TestGc#test_interrupt_in_finalizer
```
-rw-r--r-- | test/ruby/test_gc.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index e9b452c702..daa645b349 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -757,7 +757,7 @@ class TestGc < Test::Unit::TestCase ObjectSpace.define_finalizer(Object.new, f) end end; - out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, signal: :SEGV) do |*result| + out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, signal: :SEGV, timeout: 100) do |*result| break result end unless /mswin|mingw/ =~ RUBY_PLATFORM |