ruby-changes:47611
From: nobu <ko1@a...>
Date: Sun, 3 Sep 2017 09:13:20 +0900 (JST)
Subject: [ruby-changes:47611] nobu:r59727 (trunk): test_coverage.rb: suppress warnings
nobu 2017-09-03 09:13:15 +0900 (Sun, 03 Sep 2017) New Revision: 59727 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59727 Log: 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. Modified files: trunk/test/coverage/test_coverage.rb Index: test/coverage/test_coverage.rb =================================================================== --- test/coverage/test_coverage.rb (revision 59726) +++ test/coverage/test_coverage.rb (revision 59727) @@ -129,7 +129,7 @@ class TestCoverage < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/coverage/test_coverage.rb#L129 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::TestCas https://github.com/ruby/ruby/blob/trunk/test/coverage/test_coverage.rb#L155 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' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/