Skip to content

Commit

Permalink
skip API that requires a newer macOS SDK in tests
Browse files Browse the repository at this point in the history
(apply <rust-lang#3769> to `main`)
(cherry picked from commit 17cb3a2)
  • Loading branch information
joboet authored and tgross35 committed Aug 29, 2024
1 parent 26bd16f commit f0b2a0e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ fn test_apple(target: &str) {
"os/clock.h",
"os/lock.h",
"os/signpost.h",
"os/os_sync_wait_on_address.h",
// FIXME: Requires the macOS 14.4 SDK.
//"os/os_sync_wait_on_address.h",
"poll.h",
"pthread.h",
"pthread_spis.h",
Expand Down Expand Up @@ -313,6 +314,9 @@ fn test_apple(target: &str) {
return true;
}
match ty {
// FIXME: Requires the macOS 14.4 SDK.
"os_sync_wake_by_address_flags_t" | "os_sync_wait_on_address_flags_t" => true,

_ => false,
}
});
Expand All @@ -327,6 +331,13 @@ fn test_apple(target: &str) {

// FIXME: XCode 13.1 doesn't have it.
"TIOCREMOTE" => true,

// FIXME: Requires the macOS 14.4 SDK.
"OS_SYNC_WAKE_BY_ADDRESS_NONE"
| "OS_SYNC_WAKE_BY_ADDRESS_SHARED"
| "OS_SYNC_WAIT_ON_ADDRESS_NONE"
| "OS_SYNC_WAIT_ON_ADDRESS_SHARED" => true,

_ => false,
}
});
Expand All @@ -349,6 +360,15 @@ fn test_apple(target: &str) {
// FIXME: Once the SDK get updated to Ventura's level
"freadlink" | "mknodat" | "mkfifoat" => true,

// FIXME: Requires the macOS 14.4 SDK.
"os_sync_wake_by_address_any"
| "os_sync_wake_by_address_all"
| "os_sync_wake_by_address_flags_t"
| "os_sync_wait_on_address"
| "os_sync_wait_on_address_flags_t"
| "os_sync_wait_on_address_with_deadline"
| "os_sync_wait_on_address_with_timeout" => true,

_ => false,
}
});
Expand Down

0 comments on commit f0b2a0e

Please sign in to comment.