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

ruby-changes:45894

From: nobu <ko1@a...>
Date: Tue, 14 Mar 2017 13:16:06 +0900 (JST)
Subject: [ruby-changes:45894] nobu:r57967 (trunk): envutil.rb: basename for diagnostic_reports

nobu	2017-03-14 13:16:02 +0900 (Tue, 14 Mar 2017)

  New Revision: 57967

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

  Log:
    envutil.rb: basename for diagnostic_reports
    
    * test/lib/envutil.rb (EnvUtil.diagnostic_reports): diagnostic
      report file uses base name only.  [ci skip]

  Modified files:
    trunk/test/lib/envutil.rb
Index: test/lib/envutil.rb
===================================================================
--- test/lib/envutil.rb	(revision 57966)
+++ test/lib/envutil.rb	(revision 57967)
@@ -233,8 +233,8 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L233
 
     def self.diagnostic_reports(signame, pid, now)
       return unless %w[ABRT QUIT SEGV ILL TRAP].include?(signame)
-      cmd = rubybin
-      cmd = @ruby_install_name if %r{/ruby-runner#{Regexp.quote(RbConfig::CONFIG["EXEEXT"])}\z}o =~ cmd
+      cmd = File.basename(rubybin)
+      cmd = @ruby_install_name if "ruby-runner#{RbConfig::CONFIG["EXEEXT"]}" == cmd
       path = DIAGNOSTIC_REPORTS_PATH
       timeformat = DIAGNOSTIC_REPORTS_TIMEFORMAT
       pat = "#{path}/#{cmd}_#{now.strftime(timeformat)}[-_]*.crash"

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

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