1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

support btest on older ruby.

* bootstraptest/runner.rb (assert_normal_exit): check MJIT first
  to support btest with ruby ~2.5. btest (bootstraptest) should be
  enable to run with stable ruby interpreter because modified ruby
  may not able to run runner.rb and we need to know why (this is why
  we introduce btest).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2019-01-17 01:36:21 +00:00
parent 0280bef341
commit 07298ea209

View file

@ -367,7 +367,9 @@ def assert_normal_exit(testsrc, *rest, timeout: nil, **opt)
end
def assert_finish(timeout_seconds, testsrc, message = '')
timeout_seconds *= 3 if RubyVM::MJIT.enabled? # for --jit-wait
if RubyVM.const_defined? :MJIT
timeout_seconds *= 3 if RubyVM::MJIT.enabled? # for --jit-wait
end
newtest
show_progress(message) {
faildesc = nil