diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_gc.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 |