diff options
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_rubyvm_mjit.rb | 2 |
2 files changed, 4 insertions, 0 deletions
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 |