diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-07-24 11:04:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-07-25 08:42:16 +0900 |
commit | a850be68a57dce65449766654aa1912b5fa660cb (patch) | |
tree | c2ca2be18151af9e084f549cac032b749a958640 /tool/lib/test | |
parent | 82ae46211341f926d79c6e2e26f4b9097625443c (diff) |
Moved NoMemoryError hook to Test::Unit::AutoRunner
Diffstat (limited to 'tool/lib/test')
-rw-r--r-- | tool/lib/test/unit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 1034a993b0..146d6bb3c7 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -1135,6 +1135,10 @@ module Test abort @options.banner end @runner.run(@argv) || true + rescue NoMemoryError + system("cat /proc/meminfo") if File.exist?("/proc/meminfo") + 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 end def self.run(*args) |