mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
envutil.rb: diagnostic_reports for SIGTRAP
* test/lib/envutil.rb (EnvUtil.diagnostic_reports): SIGTRAP also generate diagnostic report file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bca791ae60
commit
49117ae29a
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ module EnvUtil
|
|||
DIAGNOSTIC_REPORTS_PATH = File.expand_path("~/Library/Logs/DiagnosticReports")
|
||||
DIAGNOSTIC_REPORTS_TIMEFORMAT = '%Y-%m-%d-%H%M%S'
|
||||
def self.diagnostic_reports(signame, cmd, pid, now)
|
||||
return unless %w[ABRT QUIT SEGV ILL].include?(signame)
|
||||
return unless %w[ABRT QUIT SEGV ILL TRAP].include?(signame)
|
||||
cmd = File.basename(cmd)
|
||||
path = DIAGNOSTIC_REPORTS_PATH
|
||||
timeformat = DIAGNOSTIC_REPORTS_TIMEFORMAT
|
||||
|
|
Loading…
Add table
Reference in a new issue