diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-14 04:16:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-14 04:16:02 +0000 |
commit | 04eb385192b084bff00f835d31bf6cad29567382 (patch) | |
tree | 2ea0e6af9a6819a3ec59b1e81f20493b99509f72 /test | |
parent | a7d6470f3518a8923b5b8905a6c9591fadaafeca (diff) | |
download | ruby-04eb385192b084bff00f835d31bf6cad29567382.tar.gz |
envutil.rb: basename for diagnostic_reports
* test/lib/envutil.rb (EnvUtil.diagnostic_reports): diagnostic
report file uses base name only. [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/envutil.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb index 71848473be..e6cdd776e2 100644 --- a/test/lib/envutil.rb +++ b/test/lib/envutil.rb @@ -233,8 +233,8 @@ module EnvUtil 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" |