From 83f02b98b14afe116c12f2f90ca9565418c8ed05 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 10 Sep 2014 01:48:23 +0000 Subject: [PATCH] * test/ruby/test_gc.rb: catch up last fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ test/ruby/test_gc.rb | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index ac921455f6..7284428604 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Sep 10 10:48:04 2014 Koichi Sasada + + * test/ruby/test_gc.rb: catch up last fix. + Wed Sep 10 10:36:08 2014 Koichi Sasada * gc.c (objspace_total_slot): rename objspace_available_slots. diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 5f44d75b79..e9993ce26c 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -91,14 +91,14 @@ class TestGc < Test::Unit::TestCase GC.start GC.stat(stat) ObjectSpace.count_objects(count) - assert_equal(count[:TOTAL]-count[:FREE], stat[:heap_live_slot]) - assert_equal(count[:FREE], stat[:heap_free_slot]) + assert_equal(count[:TOTAL]-count[:FREE], stat[:heap_live_slots]) + assert_equal(count[:FREE], stat[:heap_free_slots]) # measure again without GC.start 1000.times{ "a" + "b" } GC.stat(stat) ObjectSpace.count_objects(count) - assert_equal(count[:FREE], stat[:heap_free_slot]) + assert_equal(count[:FREE], stat[:heap_free_slots]) end def test_stat_argument @@ -113,7 +113,7 @@ class TestGc < Test::Unit::TestCase def test_latest_gc_info GC.start - count = GC.stat(:heap_free_slot) + GC.stat(:heap_allocatable_pages) * GC::INTERNAL_CONSTANTS[:HEAP_OBJ_LIMIT] + count = GC.stat(:heap_free_slots) + GC.stat(:heap_allocatable_pages) * GC::INTERNAL_CONSTANTS[:HEAP_OBJ_LIMIT] count.times{ "a" + "b" } assert_equal :newobj, GC.latest_gc_info[:gc_by]