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