зеркало из https://github.com/github/ruby.git
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:
Родитель
0280bef341
Коммит
07298ea209
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче