mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_coverage.rb: suppress warnings
* test/coverage/test_coverage.rb (test_nonpositive_linenumber): suppress method redefinition warnings. * test/coverage/test_coverage.rb (test_eval): suppress literal in void context warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e3c271b4fb
commit
0cbcb5f580
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ class TestCoverage < Test::Unit::TestCase
|
|||
|
||||
def test_nonpositive_linenumber
|
||||
bug12517 = '[ruby-core:76141] [Bug #12517]'
|
||||
assert_in_out_err(%w[-rcoverage], <<-"end;", ['{"<compiled>"=>[nil]}'], [], bug12517)
|
||||
assert_in_out_err(%w[-W0 -rcoverage], <<-"end;", ['{"<compiled>"=>[nil]}'], [], bug12517)
|
||||
Coverage.start
|
||||
RubyVM::InstructionSequence.compile(":ok", nil, "<compiled>", 0)
|
||||
p Coverage.result
|
||||
|
@ -155,7 +155,7 @@ class TestCoverage < Test::Unit::TestCase
|
|||
f.puts 'end'
|
||||
end
|
||||
|
||||
assert_in_out_err(%w[-rcoverage], <<-"end;", ["[1, 1, 1, 400, nil, nil, nil, nil, nil, nil, nil]"], [], bug13305)
|
||||
assert_in_out_err(%w[-W0 -rcoverage], <<-"end;", ["[1, 1, 1, 400, nil, nil, nil, nil, nil, nil, nil]"], [], bug13305)
|
||||
Coverage.start
|
||||
tmp = Dir.pwd
|
||||
require tmp + '/test.rb'
|
||||
|
|
Loading…
Add table
Reference in a new issue