diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-30 06:52:48 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-30 06:52:48 +0000 |
commit | 7b53830aeadef4380ca6b75888d5865204198982 (patch) | |
tree | ebd533da3452326ae1e9391754be19c570be5765 /test | |
parent | 7b297f0c79b1b335e0a7312cf27cd38c872cd7af (diff) | |
download | ruby-7b53830aeadef4380ca6b75888d5865204198982.tar.gz |
Show ObjectSpace.count_objects to debug NoMemoryError
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/runner.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/runner.rb b/test/runner.rb index c8f7932625..780ed400f2 100644 --- a/test/runner.rb +++ b/test/runner.rb @@ -26,4 +26,15 @@ module Test::Unit end end -exit Test::Unit::AutoRunner.run(true, src_testdir) +begin + require 'objspace' + h = {} + raise + exit Test::Unit::AutoRunner.run(true, src_testdir) +rescue + ObjectSpace.count_objects(h) + p h + ObjectSpace.count_objects_size(h) + p h + raise +end |