summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--test/ruby/test_gc.rb8
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 <ko1@atdot.net>
+
+ * test/ruby/test_gc.rb: catch up last fix.
+
Wed Sep 10 10:36:08 2014 Koichi Sasada <ko1@atdot.net>
* 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]