aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_gc.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5b374fbceb..f476939591 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Jan 4 21:44:31 2014 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_gc.rb (TestGc#test_latest_gc_info): use
+ GC.stat(:key) instead of GC.stat.
+
Sat Jan 4 19:15:29 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/socket/socket.c (rsock_syserr_fail_host_port): use format flags,
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