summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-01 15:04:13 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-01 15:04:13 +0000
commitda5e757237721f38c1f16421f0862d35acf56016 (patch)
tree3fde86008f07806256362d8df5254fdc2daf012b
parent885c7da94a3c64f6332bc66caf1f690fa61c67fa (diff)
Show memory usage on NoMemoryError ref #8711
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/runner.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/runner.rb b/test/runner.rb
index 685a166bec..028426d4f3 100644
--- a/test/runner.rb
+++ b/test/runner.rb
@@ -30,5 +30,6 @@ begin
exit Test::Unit::AutoRunner.run(true, src_testdir)
rescue NoMemoryError
system("cat /proc/meminfo") if File.exist?("/proc/meminfo")
+ system("ps x -opid,cmd,%mem,rss,size,vsz") if File.exist?("/bin/ps")
raise
end