File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,9 @@ def caveats
4949 EOS
5050 end
5151
52- def check_binary_linkage ( binary , library )
53- binary . dynamically_linked_libraries . any? do |dll |
54- next false unless dll . start_with? ( HOMEBREW_PREFIX . to_s )
55-
56- File . realpath ( dll ) == File . realpath ( library )
57- end
58- end
59-
6052 test do
53+ require "utils/linkage"
54+
6155 touch "HOMEBREW"
6256 assert_match "HOMEBREW" , shell_output ( "#{ bin } /ufind ." )
6357 assert_match "HOMEBREW" , shell_output ( "#{ opt_libexec } /uubin/find ." )
@@ -73,7 +67,7 @@ def check_binary_linkage(binary, library)
7367 missing_linkage = [ ]
7468 expected_linkage . each do |binary , dylibs |
7569 dylibs . each do |dylib |
76- next if check_binary_linkage ( binary , dylib )
70+ next if Utils . binary_linked_to_library? ( binary , dylib )
7771
7872 missing_linkage << "#{ binary } => #{ dylib } "
7973 end
You can’t perform that action at this time.
0 commit comments