aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2014-03-27 09:35:10 -0500
committerJack Nagel2014-03-27 09:35:10 -0500
commitf357cc6ebb0c9fc3210d5edc3eeb5724b717e149 (patch)
tree96e3ce07e4dbc5715e9daa0bbc2b4512f7cbe5a2 /Library/Homebrew/test
parentc1c47b56c826bda0d50f870ac67c2a5af9df5fd3 (diff)
downloadhomebrew-f357cc6ebb0c9fc3210d5edc3eeb5724b717e149.tar.bz2
Don't let broken symlinks halt linking
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_keg.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_keg.rb b/Library/Homebrew/test/test_keg.rb
index d9cce89fa..6d1790ae1 100644
--- a/Library/Homebrew/test/test_keg.rb
+++ b/Library/Homebrew/test/test_keg.rb
@@ -60,6 +60,11 @@ class LinkTests < Test::Unit::TestCase
end
end
+ def test_link_ignores_broken_symlinks_at_target
+ ln_s "/some/nonexistent/path", HOMEBREW_PREFIX/"bin/helloworld"
+ shutup { @keg.link }
+ end
+
def test_link_overwrite
touch HOMEBREW_PREFIX/"bin/helloworld"
@mode.overwrite = true