@@ -4519,6 +4519,7 @@ fn building_a_dependent_crate_witout_bin_should_fail() {
45194519#[ cargo_test]
45204520#[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
45214521fn uplift_dsym_of_bin_on_mac ( ) {
4522+ use cargo_test_support:: paths:: is_symlink;
45224523 let p = project ( )
45234524 . file ( "src/main.rs" , "fn main() { panic!(); }" )
45244525 . file ( "src/bin/b.rs" , "fn main() { panic!(); }" )
@@ -4531,7 +4532,7 @@ fn uplift_dsym_of_bin_on_mac() {
45314532 . run ( ) ;
45324533 assert ! ( p. target_debug_dir( ) . join( "foo.dSYM" ) . is_dir( ) ) ;
45334534 assert ! ( p. target_debug_dir( ) . join( "b.dSYM" ) . is_dir( ) ) ;
4534- assert ! ( p. target_debug_dir( ) . join( "b.dSYM" ) . is_symlink ( ) ) ;
4535+ assert ! ( is_symlink ( & p. target_debug_dir( ) . join( "b.dSYM" ) ) ) ;
45354536 assert ! ( p. target_debug_dir( ) . join( "examples/c.dSYM" ) . is_dir( ) ) ;
45364537 assert ! ( !p. target_debug_dir( ) . join( "c.dSYM" ) . exists( ) ) ;
45374538 assert ! ( !p. target_debug_dir( ) . join( "d.dSYM" ) . exists( ) ) ;
@@ -4540,6 +4541,7 @@ fn uplift_dsym_of_bin_on_mac() {
45404541#[ cargo_test]
45414542#[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
45424543fn uplift_dsym_of_bin_on_mac_when_broken_link_exists ( ) {
4544+ use cargo_test_support:: paths:: is_symlink;
45434545 let p = project ( )
45444546 . file ( "src/main.rs" , "fn main() { panic!(); }" )
45454547 . build ( ) ;
@@ -4558,7 +4560,7 @@ fn uplift_dsym_of_bin_on_mac_when_broken_link_exists() {
45584560 . join ( "foo-baaaaaadbaaaaaad.dSYM" ) ,
45594561 & dsym,
45604562 ) ;
4561- assert ! ( dsym . is_symlink( ) ) ;
4563+ assert ! ( is_symlink( & dsym ) ) ;
45624564 assert ! ( !dsym. exists( ) ) ;
45634565
45644566 p. cargo ( "build" ) . enable_mac_dsym ( ) . run ( ) ;
0 commit comments