From 07298ea2094bca6f847e7b0c82e3c7059ff745e3 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 17 Jan 2019 01:36:21 +0000 Subject: 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 --- bootstraptest/runner.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bootstraptest') 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 -- cgit v1.2.3