summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-09 11:22:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-09 11:22:23 +0000
commitfa326bf3129e91f7c18fcc8ec1c979e2d3a9773a (patch)
tree85389d513e1f7c6624f5bec20184dda55db9b361 /test
parent9b6bc26f878d96a25d4721396296266a22b2c05f (diff)
GC.stat key name
* test/-ext-/tracepoint/test_tracepoint.rb: follow the change of key name of GC.stat. * test/ruby/test_hash.rb (TestHash#test_AREF_fstring_key): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/-ext-/tracepoint/test_tracepoint.rb4
-rw-r--r--test/ruby/test_hash.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/-ext-/tracepoint/test_tracepoint.rb b/test/-ext-/tracepoint/test_tracepoint.rb
index dccde1dd77..cc630e895b 100644
--- a/test/-ext-/tracepoint/test_tracepoint.rb
+++ b/test/-ext-/tracepoint/test_tracepoint.rb
@@ -43,10 +43,10 @@ class TestTracepointObj < Test::Unit::TestCase
newobj_count, free_count, gc_start_count, gc_end_mark_count, gc_end_sweep_count, *newobjs = *result
- assert_operator stat2[:total_allocated_object] - stat1[:total_allocated_object], :>=, newobj_count
+ assert_operator stat2[:total_allocated_objects] - stat1[:total_allocated_objects], :>=, newobj_count
assert_operator 1_000_000, :<=, newobj_count
- assert_operator stat2[:total_freed_object] + stat2[:heap_final_slot] - stat1[:total_freed_object], :>=, free_count
+ assert_operator stat2[:total_freed_objects] + stat2[:heap_final_slots] - stat1[:total_freed_objects], :>=, free_count
assert_operator stat2[:count] - stat1[:count], :==, gc_start_count
assert_operator gc_start_count, :==, gc_end_mark_count
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb
index 9fe64b38a0..dd93a63340 100644
--- a/test/ruby/test_hash.rb
+++ b/test/ruby/test_hash.rb
@@ -217,9 +217,9 @@ class TestHash < Test::Unit::TestCase
def test_AREF_fstring_key
h = {"abc" => 1}
- before = GC.stat(:total_allocated_object)
+ before = GC.stat(:total_allocated_objects)
5.times{ h["abc"] }
- assert_equal before, GC.stat(:total_allocated_object)
+ assert_equal before, GC.stat(:total_allocated_objects)
end
def test_ASET_fstring_key