aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-04-28 22:37:27 -0400
committerJack Nagel2015-04-29 19:15:11 -0400
commit80403db9a18159ed72c5a195f937d836a62c47e5 (patch)
treeca6bbabff377a56fee90e2c81e0e57de3d6e8728 /Library
parentdc6af1a6ae66da9f7a8ba5c8681afb2d2c460032 (diff)
downloadbrew-80403db9a18159ed72c5a195f937d836a62c47e5.tar.bz2
Use Dir.tmpdir rather than /tmp in test environment
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/lib/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/lib/config.rb b/Library/Homebrew/test/lib/config.rb
index adf150c2e..919dfeaaf 100644
--- a/Library/Homebrew/test/lib/config.rb
+++ b/Library/Homebrew/test/lib/config.rb
@@ -1,6 +1,6 @@
require "tmpdir"
-HOMEBREW_TEMP = Pathname.new(ENV["HOMEBREW_TEMP"] || "/tmp")
+HOMEBREW_TEMP = Pathname.new(ENV["HOMEBREW_TEMP"] || Dir.tmpdir)
TEST_TMPDIR = ENV.fetch("HOMEBREW_TEST_TMPDIR") { |k|
dir = Dir.mktmpdir("homebrew_tests", HOMEBREW_TEMP)