mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_gc.rb: fix condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b3a4367ce4
commit
cf692592dc
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Sep 10 16:22:26 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* test/ruby/test_gc.rb: fix condition.
|
||||
|
||||
Wed Sep 10 15:29:46 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* vm_core.h (rb_call_info_t): ci->flag becomes 32-bit unsigned int
|
||||
|
|
|
@ -114,13 +114,13 @@ class TestGc < Test::Unit::TestCase
|
|||
def test_stat_constraints
|
||||
stat = GC.stat
|
||||
assert_equal stat[:total_allocated_pages], stat[:heap_allocated_pages] + stat[:total_freed_pages]
|
||||
assert_operator stat[:heap_sorted_length], :>=, stat[:heap_allocated_pages] + stat[:heap_allocatable_pages]
|
||||
assert_operator stat[:heap_sorted_length], :>=, stat[:heap_eden_pages] + stat[:heap_allocatable_pages], "stat is: " + stat.inspect
|
||||
assert_equal stat[:heap_available_slots], stat[:heap_live_slots] + stat[:heap_free_slots] + stat[:heap_final_slots]
|
||||
assert_equal stat[:heap_live_slots], stat[:total_allocated_objects] - stat[:total_freed_objects] - stat[:heap_final_slots]
|
||||
assert_equal stat[:heap_allocated_pages], stat[:heap_eden_pages] + stat[:heap_tomb_pages]
|
||||
|
||||
if use_rgengc?
|
||||
assert_equal stat[:count], stat[:major_gc_count] + stat[:minor_gc_count]
|
||||
assert_equal stat[:heap_allocated_pages], stat[:heap_eden_pages] + stat[:heap_tomb_pages]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue