summaryrefslogtreecommitdiff
path: root/test/ruby/envutil.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-10 14:44:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-10 14:44:26 +0000
commit9ada2641c6804218503f7b3bc5afdbe14601fde1 (patch)
treeeca927a533e1b63ee7a4c084e5d19427914d416d /test/ruby/envutil.rb
parent2c9c6271e84a4806c21728a97a2e6022798e1a11 (diff)
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/envutil.rb')
-rw-r--r--test/ruby/envutil.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb
index dfcd0e0808..3924d5d323 100644
--- a/test/ruby/envutil.rb
+++ b/test/ruby/envutil.rb
@@ -202,7 +202,7 @@ module EnvUtil
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