aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-10 01:48:23 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-10 01:48:23 +0000
commit83f02b98b14afe116c12f2f90ca9565418c8ed05 (patch)
tree492bb22f1c80bd93d7dca033cf2e047619ae48e8 /test/ruby/test_gc.rb
parent6c6254274fdd37d0542b3a63654a2aacab69a73a (diff)
downloadruby-83f02b98b14afe116c12f2f90ca9565418c8ed05.tar.gz
* 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
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r--test/ruby/test_gc.rb8
1 files changed, 4 insertions, 4 deletions
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]