aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-04 12:47:01 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-04 12:47:01 +0000
commit54f6b3fe826f49ad245db65f692cfc6096706bd3 (patch)
treed903dffd1cdf1f1ab4f7cee1746fe440e242fc13 /test/ruby/test_gc.rb
parent1714337d2dc971ac7b87370ec794999400c0c3bb (diff)
downloadruby-54f6b3fe826f49ad245db65f692cfc6096706bd3.tar.gz
test/ruby/test_gc.rb: use GC.stat(:key) instead of GC.stat
* test/ruby/test_gc.rb (TestGc#test_latest_gc_info): use GC.stat(:key) instead of GC.stat. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r--test/ruby/test_gc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 7c13978dc1..0dd002ddc0 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -103,7 +103,7 @@ class TestGc < Test::Unit::TestCase
def test_latest_gc_info
GC.start
- GC.stat[:heap_free_slot].times{ "a" + "b" }
+ GC.stat(:heap_free_slot).times{ "a" + "b" }
assert_equal :newobj, GC.latest_gc_info[:gc_by]
GC.start