1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Show memory usage on NoMemoryError ref #8711

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-08-01 15:04:13 +00:00
parent 885c7da94a
commit da5e757237

View file

@ -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