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

ruby-changes:35407

From: ko1 <ko1@a...>
Date: Wed, 10 Sep 2014 10:48:28 +0900 (JST)
Subject: [ruby-changes:35407] ko1:r47489 (trunk): * test/ruby/test_gc.rb: catch up last fix.

ko1	2014-09-10 10:48:23 +0900 (Wed, 10 Sep 2014)

  New Revision: 47489

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

  Log:
    * test/ruby/test_gc.rb: catch up last fix.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_gc.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47488)
+++ ChangeLog	(revision 47489)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Sep 10 10:48:04 2014  Koichi Sasada  <ko1@a...>
+
+	* test/ruby/test_gc.rb: catch up last fix.
+
 Wed Sep 10 10:36:08 2014  Koichi Sasada  <ko1@a...>
 
 	* gc.c (objspace_total_slot): rename objspace_available_slots.
Index: test/ruby/test_gc.rb
===================================================================
--- test/ruby/test_gc.rb	(revision 47488)
+++ test/ruby/test_gc.rb	(revision 47489)
@@ -91,14 +91,14 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L91
     GC.start
     GC.stat(stat)
     ObjectSpace.count_objects(count)
-    assert_equal(count[:TOTAL]-count[:FREE], stat[:heap_live_slot])
-    assert_equal(count[:FREE], stat[:heap_free_slot])
+    assert_equal(count[:TOTAL]-count[:FREE], stat[:heap_live_slots])
+    assert_equal(count[:FREE], stat[:heap_free_slots])
 
     # measure again without GC.start
     1000.times{ "a" + "b" }
     GC.stat(stat)
     ObjectSpace.count_objects(count)
-    assert_equal(count[:FREE], stat[:heap_free_slot])
+    assert_equal(count[:FREE], stat[:heap_free_slots])
   end
 
   def test_stat_argument
@@ -113,7 +113,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L113
 
   def test_latest_gc_info
     GC.start
-    count = GC.stat(:heap_free_slot) + GC.stat(:heap_allocatable_pages) * GC::INTERNAL_CONSTANTS[:HEAP_OBJ_LIMIT]
+    count = GC.stat(:heap_free_slots) + GC.stat(:heap_allocatable_pages) * GC::INTERNAL_CONSTANTS[:HEAP_OBJ_LIMIT]
     count.times{ "a" + "b" }
     assert_equal :newobj, GC.latest_gc_info[:gc_by]
 

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

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