@@ -1657,23 +1657,9 @@ fn test_file_times() {
16571657 let accessed = SystemTime :: UNIX_EPOCH + Duration :: from_secs ( 12345 ) ;
16581658 let modified = SystemTime :: UNIX_EPOCH + Duration :: from_secs ( 54321 ) ;
16591659 times = times. set_accessed ( accessed) . set_modified ( modified) ;
1660- #[ cfg( any(
1661- windows,
1662- target_os = "macos" ,
1663- target_os = "ios" ,
1664- target_os = "watchos" ,
1665- target_os = "visionos" ,
1666- target_os = "tvos" ,
1667- ) ) ]
1660+ #[ cfg( any( windows, target_vendor = "apple" ) ) ]
16681661 let created = SystemTime :: UNIX_EPOCH + Duration :: from_secs ( 32123 ) ;
1669- #[ cfg( any(
1670- windows,
1671- target_os = "macos" ,
1672- target_os = "ios" ,
1673- target_os = "watchos" ,
1674- target_os = "visionos" ,
1675- target_os = "tvos" ,
1676- ) ) ]
1662+ #[ cfg( any( windows, target_vendor = "apple" ) ) ]
16771663 {
16781664 times = times. set_created ( created) ;
16791665 }
@@ -1698,27 +1684,14 @@ fn test_file_times() {
16981684 let metadata = file. metadata ( ) . unwrap ( ) ;
16991685 assert_eq ! ( metadata. accessed( ) . unwrap( ) , accessed) ;
17001686 assert_eq ! ( metadata. modified( ) . unwrap( ) , modified) ;
1701- #[ cfg( any(
1702- windows,
1703- target_os = "macos" ,
1704- target_os = "ios" ,
1705- target_os = "watchos" ,
1706- target_os = "visionos" ,
1707- target_os = "tvos" ,
1708- ) ) ]
1687+ #[ cfg( any( windows, target_vendor = "apple" ) ) ]
17091688 {
17101689 assert_eq ! ( metadata. created( ) . unwrap( ) , created) ;
17111690 }
17121691}
17131692
17141693#[ test]
1715- #[ cfg( any(
1716- target_os = "macos" ,
1717- target_os = "ios" ,
1718- target_os = "tvos" ,
1719- target_os = "watchos" ,
1720- target_os = "visionos"
1721- ) ) ]
1694+ #[ cfg( target_vendor = "apple" ) ]
17221695fn test_file_times_pre_epoch_with_nanos ( ) {
17231696 #[ cfg( target_os = "ios" ) ]
17241697 use crate :: os:: ios:: fs:: FileTimesExt ;
0 commit comments