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

ruby-changes:10414

From: akr <ko1@a...>
Date: Mon, 2 Feb 2009 17:24:02 +0900 (JST)
Subject: [ruby-changes:10414] Ruby:r21961 (trunk): reduce test time.

akr	2009-02-02 17:08:52 +0900 (Mon, 02 Feb 2009)

  New Revision: 21961

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

  Log:
    reduce test time.

  Modified files:
    trunk/bootstraptest/test_objectspace.rb

Index: bootstraptest/test_objectspace.rb
===================================================================
--- bootstraptest/test_objectspace.rb	(revision 21960)
+++ bootstraptest/test_objectspace.rb	(revision 21961)
@@ -2,7 +2,8 @@
   eval("", TOPLEVEL_BINDING)
   minobj = ObjectSpace.to_enum(:each_object).min_by {|a| a.object_id }
   maxobj = ObjectSpace.to_enum(:each_object).max_by {|a| a.object_id }
-  minobj.object_id.upto(maxobj.object_id) {|id|
+  (((minobj.object_id-100)..(minobj.object_id+100))+
+   ((maxobj.object_id-100)..(maxobj.object_id+100))).each {|id|
     begin
       o = ObjectSpace._id2ref(id)
     rescue RangeError

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

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