From 3845a506046502f2f5e704cab87b66c6988f7229 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 20 Oct 2018 08:06:50 +0000 Subject: skip tests if --disable-mjit-support. * test/ruby/test_rubyoptions.rb: skip MJIT related test if an interpreter is built with --disable-mjit-support. * test/ruby/test_rubyvm_mjit.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_rubyoptions.rb | 2 ++ test/ruby/test_rubyvm_mjit.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 1417541282..429f72b41c 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -188,6 +188,8 @@ class TestRubyOptions < Test::Unit::TestCase assert_equal([], e) end + return if RbConfig::CONFIG["MJIT_SUPPORT"] == 'no' + [ %w(--version --jit --disable=jit), %w(--version --enable=jit --disable=jit), diff --git a/test/ruby/test_rubyvm_mjit.rb b/test/ruby/test_rubyvm_mjit.rb index b41ad78510..12772320f5 100644 --- a/test/ruby/test_rubyvm_mjit.rb +++ b/test/ruby/test_rubyvm_mjit.rb @@ -2,6 +2,8 @@ require 'test/unit' require_relative '../lib/jit_support' +return if RbConfig::CONFIG["MJIT_SUPPORT"] == 'no' + class TestRubyVMMJIT < Test::Unit::TestCase include JITSupport -- cgit v1.2.3