Skip to content

Commit

Permalink
respect RUBY_TEST_SUBPROCESS_TIMEOUT_SCALE
Browse files Browse the repository at this point in the history
GC benchmarks will spend long time with assertions so we need
to respect `RUBY_TEST_SUBPROCESS_TIMEOUT_SCALE` environment variable.
  • Loading branch information
ko1 committed Jun 10, 2024
1 parent 2959e1b commit 8b2501f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bootstraptest/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ def main
BT.quiet = false
BT.timeout = 180
BT.timeout_scale = (defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled? ? 3 : 1) # for --jit-wait
if (ts = ENV['RUBY_TEST_SUBPROCESS_TIMEOUT_SCALE'].to_i) > 1
BT.timeout_scale *= ts
end

# BT.wn = 1
dir = nil
quiet = false
Expand Down

0 comments on commit 8b2501f

Please sign in to comment.