Skip to content
Snippets Groups Projects
Commit 975f61d9 authored by Jack Nagel's avatar Jack Nagel
Browse files

Fix filesystem leak in keg tests

parent 6214b982
No related branches found
No related tags found
No related merge requests found
......@@ -226,11 +226,17 @@ class LinkTests < Homebrew::TestCase
a.join("lib", "example2").make_symlink "example"
b.join("lib", "example2").mkpath
Keg.new(a).link
a = Keg.new(a)
b = Keg.new(b)
a.link
lib = HOMEBREW_PREFIX.join("lib")
assert_equal 2, lib.children.length
assert_raises(Keg::ConflictError) { Keg.new(b).link }
assert_raises(Keg::ConflictError) { b.link }
assert_equal 2, lib.children.length
ensure
a.unlink
a.uninstall
b.uninstall
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment