From bd7428689a6b14fee9e67678ae0bf6f35e5a50ac Mon Sep 17 00:00:00 2001 From: joboet Date: Thu, 11 Jul 2024 13:36:05 +0200 Subject: [PATCH] skip API that requires a newer macOS SDK in tests --- libc-test/build.rs | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index 7c2875d0e9056..c6247648b6142 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -242,7 +242,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", @@ -331,6 +332,11 @@ fn test_apple(target: &str) { return true; } match ty { + // FIXME: Requires the macOS 14.4 SDK. + "os_clockid_t" + | "os_sync_wake_by_address_flags_t" + | "os_sync_wait_by_address_flags_t" => true, + _ => false, } }); @@ -349,6 +355,14 @@ fn test_apple(target: &str) { // FIXME: XCode 13.1 doesn't have it. "TIOCREMOTE" => true, + + // FIXME: Requires the macOS 14.4 SDK. + "OS_CLOCK_MACH_ABSOLUTE_TIME" + | "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, } }); @@ -374,6 +388,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, } });