ruby-changes:34316
From: nobu <ko1@a...>
Date: Tue, 10 Jun 2014 23:44:38 +0900 (JST)
Subject: [ruby-changes:34316] nobu:r46397 (trunk): envutil.rb: avoid error on OS X 10.10
nobu 2014-06-10 23:44:26 +0900 (Tue, 10 Jun 2014) New Revision: 46397 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46397 Log: envutil.rb: avoid error on OS X 10.10 * test/ruby/envutil.rb (diagnostic_reports): Mac OS X 10.10 may not create plist file with crash file together. Modified files: trunk/test/ruby/envutil.rb Index: test/ruby/envutil.rb =================================================================== --- test/ruby/envutil.rb (revision 46396) +++ test/ruby/envutil.rb (revision 46397) @@ -202,7 +202,7 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L202 log = File.read(name) rescue next if /\AProcess:\s+#{cmd} \[#{pid}\]$/ =~ log File.unlink(name) - File.unlink("#{path}/.#{File.basename(name)}.plist") + File.unlink("#{path}/.#{File.basename(name)}.plist") rescue nil return log end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/