зеркало из https://github.com/github/ruby.git
test_rubyoptions.rb: fix for r46355 and r49638
* test/ruby/test_rubyoptions.rb (test_version, test_verbose): extra lines (currently last_commit and malloc_conf) may be shown. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
34844b20be
Коммит
eb7ddaa3a4
|
@ -85,8 +85,8 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
|
||||
def test_verbose
|
||||
assert_in_out_err(["-vve", ""]) do |r, e|
|
||||
assert_match(/^ruby #{RUBY_VERSION}(?:[p ]|dev|rc).*? \[#{RUBY_PLATFORM}\]$/, r.join)
|
||||
assert_equal RUBY_DESCRIPTION, r.join.chomp
|
||||
assert_match(/^ruby #{RUBY_VERSION}(?:[p ]|dev|rc).*? \[#{RUBY_PLATFORM}\]$/, r[0])
|
||||
assert_equal(RUBY_DESCRIPTION, r[0])
|
||||
assert_equal([], e)
|
||||
end
|
||||
|
||||
|
@ -139,8 +139,8 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
|
||||
def test_version
|
||||
assert_in_out_err(%w(--version)) do |r, e|
|
||||
assert_match(/^ruby #{RUBY_VERSION}(?:[p ]|dev|rc).*? \[#{RUBY_PLATFORM}\]$/, r.join)
|
||||
assert_equal RUBY_DESCRIPTION, r.join.chomp
|
||||
assert_match(/^ruby #{RUBY_VERSION}(?:[p ]|dev|rc).*? \[#{RUBY_PLATFORM}\]$/, r[0])
|
||||
assert_equal(RUBY_DESCRIPTION, r[0])
|
||||
assert_equal([], e)
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче