summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-22 10:38:56 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-22 10:38:56 +0000
commitd65f7458bc8b4fa4404c41713cfa1ece5260fc8a (patch)
treeedb94c2a2caf7c5727b9b2f87a94db94d8669321 /test
parent52bd0d190042f739a80e76f43e7ef3cbc8ae0969 (diff)
parse.y: remove coverage-related code fragments
The code fragments that initializes coverage data were scattered into both parse.y and compile.c. parse.y allocated a coverage data, and compile.c initialize the data. To remove this cross-cutting concern, this change moves the allocation from "coverage" function of parse.y to "rb_iseq_new_top" of iseq.c. For the sake, parse.y just counts the line number of the original source code, and the number is passed via rb_ast_body_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/coverage/test_coverage.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/coverage/test_coverage.rb b/test/coverage/test_coverage.rb
index 940f5d39be..0b150b8509 100644
--- a/test/coverage/test_coverage.rb
+++ b/test/coverage/test_coverage.rb
@@ -127,15 +127,6 @@ class TestCoverage < Test::Unit::TestCase
}
end
- def test_nonpositive_linenumber
- bug12517 = '[ruby-core:76141] [Bug #12517]'
- assert_in_out_err(%w[-W0 -rcoverage], <<-"end;", ['{"<compiled>"=>[nil]}'], [], bug12517)
- Coverage.start
- RubyVM::InstructionSequence.compile(":ok", nil, "<compiled>", 0)
- p Coverage.result
- end;
- end
-
def test_eval
bug13305 = '[ruby-core:80079] [Bug #13305]'