Rollup merge of #125226 - madsmtm:fix-mac-catalyst-tests, r=workingju… · model-checking/verify-rust-std@1aaf0a9 (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -1431,7 +1431,7 @@ fn metadata_access_times() {
1431 1431 assert_eq!(check!(a.modified()), check!(a.modified()));
1432 1432 assert_eq!(check!(b.accessed()), check!(b.modified()));
1433 1433
1434 -if cfg!(target_os = "macos") |
1434 +if cfg!(target_vendor = "apple") |
1435 1435 check!(a.created());
1436 1436 check!(b.created());
1437 1437 }
Original file line number Diff line number Diff line change
@@ -491,6 +491,14 @@ mod imp {
491 491 }
492 492 }
493 493
494 +// This is intentionally not enabled on iOS/tvOS/watchOS/visionOS, as it uses
495 +// several symbols that might lead to rejections from the App Store, namely
496 +// `sigaction`, `sigaltstack`, `sysctlbyname`, `mmap`, `munmap` and `mprotect`.
497 +//
498 +// This might be overly cautious, though it is also what Swift does (and they
499 +// usually have fewer qualms about forwards compatibility, since the runtime
500 +// is shipped with the OS):
501 +// https://github.com/apple/swift/blob/swift-5.10-RELEASE/stdlib/public/runtime/CrashHandlerMacOS.cpp
494 502 #[cfg(not(any(
495 503 target_os = "linux",
496 504 target_os = "freebsd",