aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-27 14:53:02 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-27 14:53:02 +0000
commit45918161a831c0ada6eecd79ba9500d50e308f72 (patch)
treec23987744324394cb6aa48a6ab553fa8477110c5 /test/lib
parent1922e6ad65b7a458eeeb84da9f07724b0f1c1145 (diff)
downloadruby-45918161a831c0ada6eecd79ba9500d50e308f72.tar.gz
jit_support.rb: skip testing MJIT on oracle developer studio
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/jit_support.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb
index 82f53ec59d..a1bd881e6f 100644
--- a/test/lib/jit_support.rb
+++ b/test/lib/jit_support.rb
@@ -4,7 +4,8 @@ module JITSupport
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
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)