aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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