aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-17 01:36:21 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-17 01:36:21 +0000
commit07298ea2094bca6f847e7b0c82e3c7059ff745e3 (patch)
treeded5d8eccc7aa6204ccd45f9149fd4208947ce85
parent0280bef3417350a0932c084c8dc7a3db86ec93c2 (diff)
downloadruby-07298ea2094bca6f847e7b0c82e3c7059ff745e3.tar.gz
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
-rwxr-xr-xbootstraptest/runner.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 78f3143cd5..dcaabc9743 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -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