Rename fs_leak_log to fs_leak.log and move to tmp.

This commit is contained in:
Markus Reiter 2016-10-24 23:11:23 +02:00
parent e3be9c068b
commit 4efdbbde06
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ module Homebrew
Homebrew.failed = !$?.success? Homebrew.failed = !$?.success?
if (fs_leak_log = HOMEBREW_LIBRARY/"Homebrew/test/fs_leak_log").file? if (fs_leak_log = HOMEBREW_LIBRARY_PATH/"tmp/fs_leak.log").file?
fs_leak_log_content = fs_leak_log.read fs_leak_log_content = fs_leak_log.read
unless fs_leak_log_content.empty? unless fs_leak_log_content.empty?
opoo "File leak is detected" opoo "File leak is detected"

View File

@ -43,7 +43,7 @@ module Homebrew
module FSLeakLogger module FSLeakLogger
def self.included(klass) def self.included(klass)
require "find" require "find"
@@log = File.open("#{__dir__}/fs_leak_log", "w") @@log = File.open(HOMEBREW_LIBRARY_PATH/"tmp/fs_leak.log", "w")
klass.make_my_diffs_pretty! klass.make_my_diffs_pretty!
end end