mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Show more portable and detailed info on NoMemoryError ref #8711
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ae0181b7fe
commit
6f39ca4665
1 changed files with 1 additions and 1 deletions
|
@ -30,6 +30,6 @@ begin
|
||||||
exit Test::Unit::AutoRunner.run(true, src_testdir)
|
exit Test::Unit::AutoRunner.run(true, src_testdir)
|
||||||
rescue NoMemoryError
|
rescue NoMemoryError
|
||||||
system("cat /proc/meminfo") if File.exist?("/proc/meminfo")
|
system("cat /proc/meminfo") if File.exist?("/proc/meminfo")
|
||||||
system("ps x -opid,cmd,%mem,rss,size,vsz") if File.exist?("/bin/ps")
|
system("ps x -opid,args,%cpu,%mem,nlwp,rss,vsz,wchan,stat,start,time,etime,blocked,caught,ignored,pending,f") if File.exist?("/bin/ps")
|
||||||
raise
|
raise
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue