diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-03 00:13:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-03 00:13:15 +0000 |
commit | 0cbcb5f5804a7652709d2227428ffc09ae3c8935 (patch) | |
tree | b19f0e07b6636d15de848e915202483fe1d25824 /test | |
parent | e3c271b4fb0243e5aeedd696e3bb043a203b566f (diff) | |
download | ruby-0cbcb5f5804a7652709d2227428ffc09ae3c8935.tar.gz |
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
Diffstat (limited to 'test')
-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' |