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:
parent
885c7da94a
commit
da5e757237
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue