ruby-changes:51295
From: k0kubun <ko1@a...>
Date: Thu, 24 May 2018 21:57:48 +0900 (JST)
Subject: [ruby-changes:51295] k0kubun:r63501 (trunk): test_rubyoptions.rb: allow passing test_verbose
k0kubun 2018-05-24 21:57:40 +0900 (Thu, 24 May 2018) New Revision: 63501 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63501 Log: test_rubyoptions.rb: allow passing test_verbose with -DMJIT_FORCE_ENABLE. With -DMJIT_FORCE_ENABLE, absence of --jit doesn't mean JIT disabled. Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 63500) +++ test/ruby/test_rubyoptions.rb (revision 63501) @@ -116,7 +116,11 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L116 def test_verbose assert_in_out_err(["-vve", ""]) do |r, e| assert_match(VERSION_PATTERN, r[0]) - assert_equal(NO_JIT_DESCRIPTION, r[0]) + if RbConfig::CONFIG['cppflags'].match?(/(\A|\s)-DMJIT_FORCE_ENABLE\b/) + assert_equal(RUBY_DESCRIPTION, r[0]) + else + assert_equal(NO_JIT_DESCRIPTION, r[0]) + end assert_equal([], e) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/