mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_bug_reporter.rb: make it work with --jit
test_rubyoptions.rb: replace gsub with sub because it's suboptimal for this git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0b01776d43
commit
acacd7a1d3
2 changed files with 4 additions and 2 deletions
|
@ -4,10 +4,12 @@ require 'tmpdir'
|
|||
|
||||
class TestBugReporter < Test::Unit::TestCase
|
||||
def test_bug_reporter_add
|
||||
description = RUBY_DESCRIPTION
|
||||
description = description.sub(/\+JIT /, '') if RubyVM::MJIT.enabled?
|
||||
expected_stderr = [
|
||||
:*,
|
||||
/\[BUG\]\sSegmentation\sfault.*\n/,
|
||||
/#{ Regexp.quote(RUBY_DESCRIPTION) }\n\n/,
|
||||
/#{ Regexp.quote(description) }\n\n/,
|
||||
:*,
|
||||
/Sample bug reporter: 12345/,
|
||||
:*
|
||||
|
|
|
@ -110,7 +110,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
assert_in_out_err(["-vve", ""]) do |r, e|
|
||||
assert_match(VERSION_PATTERN, r[0])
|
||||
description = RUBY_DESCRIPTION
|
||||
description = description.gsub(/\+JIT /, '') if RubyVM::MJIT.enabled?
|
||||
description = description.sub(/\+JIT /, '') if RubyVM::MJIT.enabled?
|
||||
assert_equal(description, r[0])
|
||||
assert_equal([], e)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue