Revert "test: Add test for Keg#mach_o_files hardlink behavior."
This reverts commit 62d7079684cdb568600e22531c62888622a71ff1.
This commit is contained in:
parent
62d7079684
commit
70ceb851a5
@ -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
|
||||
|
@ -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?
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user