ruby-changes:53004
From: ko1 <ko1@a...>
Date: Sat, 20 Oct 2018 17:06:55 +0900 (JST)
Subject: [ruby-changes:53004] ko1:r65218 (trunk): skip tests if --disable-mjit-support.
ko1 2018-10-20 17:06:50 +0900 (Sat, 20 Oct 2018) New Revision: 65218 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65218 Log: 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. Modified files: trunk/test/ruby/test_rubyoptions.rb trunk/test/ruby/test_rubyvm_mjit.rb Index: test/ruby/test_rubyvm_mjit.rb =================================================================== --- test/ruby/test_rubyvm_mjit.rb (revision 65217) +++ test/ruby/test_rubyvm_mjit.rb (revision 65218) @@ -2,6 +2,8 @@ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyvm_mjit.rb#L2 require 'test/unit' require_relative '../lib/jit_support' +return if RbConfig::CONFIG["MJIT_SUPPORT"] == 'no' + class TestRubyVMMJIT < Test::Unit::TestCase include JITSupport Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 65217) +++ test/ruby/test_rubyoptions.rb (revision 65218) @@ -188,6 +188,8 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L188 assert_equal([], e) end + return if RbConfig::CONFIG["MJIT_SUPPORT"] == 'no' + [ %w(--version --jit --disable=jit), %w(--version --enable=jit --disable=jit), -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/