mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/coverage/coverage.c: revert r32071. The commit caused SEGV on
some minor nonfree OS. I have no means of debugging the bug. My personal opinion is that such OS should be unsupported unless there is an active maintainer. [ruby-core:37352] * test/coverage/test_coverage.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
276033220d
commit
74454f5796
3 changed files with 18 additions and 42 deletions
|
@ -15,29 +15,4 @@ class TestCoverage < Test::Unit::TestCase
|
|||
assert_kind_of(Array, val)
|
||||
end
|
||||
end
|
||||
|
||||
def test_restarting_coverage
|
||||
loaded_features = $".dup
|
||||
|
||||
Dir.mktmpdir {|tmp|
|
||||
Dir.chdir(tmp) {
|
||||
File.open("test.rb", "w") do |f|
|
||||
f.puts <<-EOS
|
||||
def coverage_test_method
|
||||
:ok
|
||||
end
|
||||
EOS
|
||||
end
|
||||
|
||||
Coverage.start
|
||||
require tmp + '/test.rb'
|
||||
Coverage.result
|
||||
Coverage.start
|
||||
coverage_test_method
|
||||
assert_equal 1, Coverage.result.size
|
||||
}
|
||||
}
|
||||
ensure
|
||||
$".replace loaded_features
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue