зеркало из https://github.com/github/ruby.git
Moved NoMemoryError hook to Test::Unit::AutoRunner
This commit is contained in:
Родитель
82ae462113
Коммит
a850be68a5
|
@ -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)
|
||||
|
|
|
@ -35,10 +35,4 @@ if ENV['COVERAGE']
|
|||
require_relative "#{tool_dir}/test-coverage.rb"
|
||||
end
|
||||
|
||||
begin
|
||||
exit Test::Unit::AutoRunner.run(true, src_testdir)
|
||||
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
|
||||
exit Test::Unit::AutoRunner.run(true, src_testdir)
|
||||
|
|
Загрузка…
Ссылка в новой задаче