diff options
-rw-r--r-- | test/coverage/test_coverage.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/coverage/test_coverage.rb b/test/coverage/test_coverage.rb index 4a57f8f1bb..23672fcade 100644 --- a/test/coverage/test_coverage.rb +++ b/test/coverage/test_coverage.rb @@ -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' |