From d97c0e6b1a71432fd4f6dbc736dd17d65f86a853 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 2 Feb 2009 08:08:52 +0000 Subject: reduce test time. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_objectspace.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstraptest/test_objectspace.rb b/bootstraptest/test_objectspace.rb index 1a43d4201..486d5aff7 100644 --- a/bootstraptest/test_objectspace.rb +++ b/bootstraptest/test_objectspace.rb @@ -2,7 +2,8 @@ assert_normal_exit %q{ 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 -- cgit