[前][次][番号順一覧][スレッド一覧]

ruby-changes:37756

From: nobu <ko1@a...>
Date: Wed, 4 Mar 2015 09:24:21 +0900 (JST)
Subject: [ruby-changes:37756] nobu:r49837 (trunk): envutil.rb: diagnostic_reports for SIGTRAP

nobu	2015-03-04 09:24:06 +0900 (Wed, 04 Mar 2015)

  New Revision: 49837

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49837

  Log:
    envutil.rb: diagnostic_reports for SIGTRAP
    
    * test/lib/envutil.rb (EnvUtil.diagnostic_reports): SIGTRAP also
      generate diagnostic report file.

  Modified files:
    trunk/test/lib/envutil.rb
Index: test/lib/envutil.rb
===================================================================
--- test/lib/envutil.rb	(revision 49836)
+++ test/lib/envutil.rb	(revision 49837)
@@ -209,7 +209,7 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L209
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]