From 21675bb6a70e927e54f6adb92e105773d08459e7 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 2 Feb 2009 08:08:52 +0000 Subject: [PATCH] reduce test time. git-svn-id: svn+ssh://ci.ruby-lang.org/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 1a43d42017..486d5aff73 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