[前][次][番号順一覧][スレッド一覧]

ruby-changes:54627

From: ko1 <ko1@a...>
Date: Thu, 17 Jan 2019 10:36:26 +0900 (JST)
Subject: [ruby-changes:54627] ko1:r66842 (trunk): support btest on older ruby.

ko1	2019-01-17 10:36:21 +0900 (Thu, 17 Jan 2019)

  New Revision: 66842

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66842

  Log:
    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).

  Modified files:
    trunk/bootstraptest/runner.rb
Index: bootstraptest/runner.rb
===================================================================
--- bootstraptest/runner.rb	(revision 66841)
+++ bootstraptest/runner.rb	(revision 66842)
@@ -367,7 +367,9 @@ def assert_normal_exit(testsrc, *rest, t https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L367
 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]