diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-02 08:08:52 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-02 08:08:52 +0000 |
| commit | d97c0e6b1a71432fd4f6dbc736dd17d65f86a853 (patch) | |
| tree | 321d89e9180cb8ce623225689507d9716efe4d92 /bootstraptest | |
| parent | 5b48235e9c77c2976f9dcb6545157d90a541b552 (diff) | |
| download | ruby-d97c0e6b1a71432fd4f6dbc736dd17d65f86a853.tar.gz ruby-d97c0e6b1a71432fd4f6dbc736dd17d65f86a853.tar.xz ruby-d97c0e6b1a71432fd4f6dbc736dd17d65f86a853.zip | |
reduce test time.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
| -rw-r--r-- | bootstraptest/test_objectspace.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
