File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -677,23 +677,25 @@ fn split_flags(output: &[u8]) -> Vec<String> {
677
677
#[ test]
678
678
#[ cfg( target_os = "macos" ) ]
679
679
fn system_library_mac_test ( ) {
680
+ use std:: path:: Path ;
681
+
680
682
let system_roots = vec ! [ PathBuf :: from( "/Library" ) , PathBuf :: from( "/System" ) ] ;
681
683
682
684
assert ! ( !is_static_available(
683
685
"PluginManager" ,
684
- system_roots,
686
+ & system_roots,
685
687
& [ PathBuf :: from( "/Library/Frameworks" ) ]
686
688
) ) ;
687
689
assert ! ( !is_static_available(
688
690
"python2.7" ,
689
- system_roots,
691
+ & system_roots,
690
692
& [ PathBuf :: from(
691
693
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config"
692
694
) ]
693
695
) ) ;
694
696
assert ! ( !is_static_available(
695
697
"ffi_convenience" ,
696
- system_roots,
698
+ & system_roots,
697
699
& [ PathBuf :: from(
698
700
"/Library/Ruby/Gems/2.0.0/gems/ffi-1.9.10/ext/ffi_c/libffi-x86_64/.libs"
699
701
) ]
@@ -703,7 +705,7 @@ fn system_library_mac_test() {
703
705
if Path :: new ( "/usr/local/lib/libpng16.a" ) . exists ( ) {
704
706
assert ! ( is_static_available(
705
707
"png16" ,
706
- system_roots,
708
+ & system_roots,
707
709
& [ PathBuf :: from( "/usr/local/lib" ) ]
708
710
) ) ;
709
711
You can’t perform that action at this time.
0 commit comments