aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorBaptiste Fontaine2016-01-27 22:38:03 +0100
committerBaptiste Fontaine2016-01-27 22:38:24 +0100
commitc25e11563c839f2d4c49cb28d3bcbff177cc3fb3 (patch)
treefca37f931fbf02f624308cc753d92fc4a541b729 /Library/Homebrew
parent4cc8d3ed8b03f1cb84fe66c911f9c3ced936a185 (diff)
downloadbrew-c25e11563c839f2d4c49cb28d3bcbff177cc3fb3.tar.bz2
tests: fix a file leak
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/test/test_integration_cmds.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb
index 78b268a27..805980fdf 100644
--- a/Library/Homebrew/test/test_integration_cmds.rb
+++ b/Library/Homebrew/test/test_integration_cmds.rb
@@ -158,6 +158,8 @@ class IntegrationCommandTests < Homebrew::TestCase
def test_cleanup
(HOMEBREW_CACHE/"test").write "test"
assert_match "#{HOMEBREW_CACHE}/test", cmd("cleanup", "--prune=all")
+ ensure
+ (HOMEBREW_CACHE/"test").rmtree
end
def test_readall