@@ -1657,23 +1657,9 @@ fn test_file_times() {
1657
1657
let accessed = SystemTime :: UNIX_EPOCH + Duration :: from_secs ( 12345 ) ;
1658
1658
let modified = SystemTime :: UNIX_EPOCH + Duration :: from_secs ( 54321 ) ;
1659
1659
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" ) ) ]
1668
1661
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" ) ) ]
1677
1663
{
1678
1664
times = times. set_created ( created) ;
1679
1665
}
@@ -1698,27 +1684,14 @@ fn test_file_times() {
1698
1684
let metadata = file. metadata ( ) . unwrap ( ) ;
1699
1685
assert_eq ! ( metadata. accessed( ) . unwrap( ) , accessed) ;
1700
1686
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" ) ) ]
1709
1688
{
1710
1689
assert_eq ! ( metadata. created( ) . unwrap( ) , created) ;
1711
1690
}
1712
1691
}
1713
1692
1714
1693
#[ 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" ) ]
1722
1695
fn test_file_times_pre_epoch_with_nanos ( ) {
1723
1696
#[ cfg( target_os = "ios" ) ]
1724
1697
use crate :: os:: ios:: fs:: FileTimesExt ;
0 commit comments