aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-28 08:52:24 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-28 08:52:24 +0000
commit0b01776d430422b9ed89e078d93b7db3cb27f235 (patch)
treeb52a0cea43bd88433e174c977480fe194acddb60 /test
parent9aab4b6bc723ed438a1df7b0041996c10ae42ac3 (diff)
downloadruby-0b01776d430422b9ed89e078d93b7db3cb27f235.tar.gz
test_rubyoptions.rb: let test_verbose work w/ --jit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_rubyoptions.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index e6659d4c30..f7c5c415cf 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -109,7 +109,9 @@ class TestRubyOptions < Test::Unit::TestCase
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