ruby-changes:53005
From: ko1 <ko1@a...>
Date: Sat, 20 Oct 2018 17:47:33 +0900 (JST)
Subject: [ruby-changes:53005] ko1:r65219 (trunk): require 'rbconifg' earlier.
ko1 2018-10-20 17:47:26 +0900 (Sat, 20 Oct 2018) New Revision: 65219 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65219 Log: require 'rbconifg' earlier. * test/lib/jit_support.rb: require rbconfig here. * test/ruby/test_jit.rb: rbconfig should be required before. Modified files: trunk/test/lib/jit_support.rb trunk/test/ruby/test_jit.rb Index: test/ruby/test_jit.rb =================================================================== --- test/ruby/test_jit.rb (revision 65218) +++ test/ruby/test_jit.rb (revision 65219) @@ -3,8 +3,6 @@ require 'test/unit' https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L3 require 'tmpdir' require_relative '../lib/jit_support' -require 'rbconfig' - return if RbConfig::CONFIG["MJIT_SUPPORT"] == 'no' # Test for --jit option Index: test/lib/jit_support.rb =================================================================== --- test/lib/jit_support.rb (revision 65218) +++ test/lib/jit_support.rb (revision 65219) @@ -1,3 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/test/lib/jit_support.rb#L1 +require 'rbconfig' + module JITSupport JIT_TIMEOUT = 600 # 10min for each... JIT_SUCCESS_PREFIX = 'JIT success \(\d+\.\dms\)' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/