ruby-changes:51079
From: k0kubun <ko1@a...>
Date: Sat, 28 Apr 2018 17:52:29 +0900 (JST)
Subject: [ruby-changes:51079] k0kubun:r63286 (trunk): test_rubyoptions.rb: let test_verbose work w/ --jit
k0kubun 2018-04-28 17:52:24 +0900 (Sat, 28 Apr 2018) New Revision: 63286 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63286 Log: test_rubyoptions.rb: let test_verbose work w/ --jit Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 63285) +++ test/ruby/test_rubyoptions.rb (revision 63286) @@ -109,7 +109,9 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L109 def test_verbose assert_in_out_err(["-vve", ""]) do |r, e| assert_match(VERSION_PATTERN, r[0]) - assert_equal(RUBY_DESCRIPTION, r[0]) + description = RUBY_DESCRIPTION + description = description.gsub(/\+JIT /, '') if RubyVM::MJIT.enabled? + assert_equal(description, r[0]) assert_equal([], e) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/