Revert "test: Add test for Keg#mach_o_files hardlink behavior."

This reverts commit 62d7079684cdb568600e22531c62888622a71ff1.
This commit is contained in:
Tim D. Smith 2016-06-27 23:25:10 -07:00
parent 62d7079684
commit 70ceb851a5
3 changed files with 8 additions and 23 deletions

View File

@ -304,19 +304,4 @@ class LinkTests < Homebrew::TestCase
keg.unlink
keg.uninstall
end
def test_mach_o_files_skips_hardlinks
a = HOMEBREW_CELLAR.join("a", "1.0")
a.join("lib").mkpath
FileUtils.cp dylib_path("i386"), a.join("lib", "i386.dylib")
FileUtils.ln a.join("lib", "i386.dylib"), a.join("lib", "i386_link.dylib")
keg = Keg.new(a)
keg.link
assert_equal 1, keg.mach_o_files.size
ensure
keg.unlink
keg.uninstall
end
end

View File

@ -1,6 +1,14 @@
require "testing_env"
class MachOPathnameTests < Homebrew::TestCase
def dylib_path(name)
Pathname.new("#{TEST_DIRECTORY}/mach/#{name}.dylib")
end
def bundle_path(name)
Pathname.new("#{TEST_DIRECTORY}/mach/#{name}.bundle")
end
def test_fat_dylib
pn = dylib_path("fat")
assert_predicate pn, :universal?

View File

@ -112,13 +112,5 @@ module Homebrew
}
refute exp.eql?(act), msg
end
def dylib_path(name)
Pathname.new("#{TEST_DIRECTORY}/mach/#{name}.dylib")
end
def bundle_path(name)
Pathname.new("#{TEST_DIRECTORY}/mach/#{name}.bundle")
end
end
end