[前][次][番号順一覧][スレッド一覧]

ruby-changes:32421

From: kazu <ko1@a...>
Date: Sat, 4 Jan 2014 21:47:07 +0900 (JST)
Subject: [ruby-changes:32421] kazu:r44500 (trunk): test/ruby/test_gc.rb: use GC.stat(:key) instead of GC.stat

kazu	2014-01-04 21:47:01 +0900 (Sat, 04 Jan 2014)

  New Revision: 44500

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44500

  Log:
    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.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_gc.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44499)
+++ ChangeLog	(revision 44500)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jan  4 21:44:31 2014  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* 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@r...>
 
 	* ext/socket/socket.c (rsock_syserr_fail_host_port): use format flags,
Index: test/ruby/test_gc.rb
===================================================================
--- test/ruby/test_gc.rb	(revision 44499)
+++ test/ruby/test_gc.rb	(revision 44500)
@@ -103,7 +103,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L103
 
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]