ruby-changes:54376
From: k0kubun <ko1@a...>
Date: Thu, 27 Dec 2018 23:53:07 +0900 (JST)
Subject: [ruby-changes:54376] k0kubun:r66590 (trunk): jit_support.rb: skip testing MJIT on oracle developer studio
k0kubun 2018-12-27 23:53:02 +0900 (Thu, 27 Dec 2018) New Revision: 66590 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66590 Log: jit_support.rb: skip testing MJIT on oracle developer studio Modified files: trunk/test/lib/jit_support.rb Index: test/lib/jit_support.rb =================================================================== --- test/lib/jit_support.rb (revision 66589) +++ test/lib/jit_support.rb (revision 66590) @@ -4,7 +4,8 @@ module JITSupport https://github.com/ruby/ruby/blob/trunk/test/lib/jit_support.rb#L4 JIT_TIMEOUT = 600 # 10min for each... JIT_SUCCESS_PREFIX = 'JIT success \(\d+\.\dms\)' UNSUPPORTED_COMPILERS = [ - 'icc', + %r[\Aicc\z], + %r[\A/opt/developerstudio\d+\.\d+/bin/cc\z], ] module_function @@ -42,7 +43,9 @@ module JITSupport https://github.com/ruby/ruby/blob/trunk/test/lib/jit_support.rb#L43 def supported? return @supported if defined?(@supported) - @supported = !UNSUPPORTED_COMPILERS.include?(RbConfig::CONFIG['CC']) + @supported = UNSUPPORTED_COMPILERS.all? do |regexp| + !regexp.match?(RbConfig::CONFIG['CC']) + end end def remove_mjit_logs(stderr) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/