Skip to content

Commit 17cb3a2

Browse files
committed
skip API that requires a newer macOS SDK in tests
1 parent 5bd8143 commit 17cb3a2

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

libc-test/build.rs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ fn test_apple(target: &str) {
242242
"os/clock.h",
243243
"os/lock.h",
244244
"os/signpost.h",
245-
"os/os_sync_wait_on_address.h",
245+
// FIXME: Requires the macOS 14.4 SDK.
246+
//"os/os_sync_wait_on_address.h",
246247
"poll.h",
247248
"pthread.h",
248249
"pthread_spis.h",
@@ -331,6 +332,9 @@ fn test_apple(target: &str) {
331332
return true;
332333
}
333334
match ty {
335+
// FIXME: Requires the macOS 14.4 SDK.
336+
"os_sync_wake_by_address_flags_t" | "os_sync_wait_on_address_flags_t" => true,
337+
334338
_ => false,
335339
}
336340
});
@@ -349,6 +353,13 @@ fn test_apple(target: &str) {
349353

350354
// FIXME: XCode 13.1 doesn't have it.
351355
"TIOCREMOTE" => true,
356+
357+
// FIXME: Requires the macOS 14.4 SDK.
358+
"OS_SYNC_WAKE_BY_ADDRESS_NONE"
359+
| "OS_SYNC_WAKE_BY_ADDRESS_SHARED"
360+
| "OS_SYNC_WAIT_ON_ADDRESS_NONE"
361+
| "OS_SYNC_WAIT_ON_ADDRESS_SHARED" => true,
362+
352363
_ => false,
353364
}
354365
});
@@ -374,6 +385,15 @@ fn test_apple(target: &str) {
374385
// FIXME: Once the SDK get updated to Ventura's level
375386
"freadlink" | "mknodat" | "mkfifoat" => true,
376387

388+
// FIXME: Requires the macOS 14.4 SDK.
389+
"os_sync_wake_by_address_any"
390+
| "os_sync_wake_by_address_all"
391+
| "os_sync_wake_by_address_flags_t"
392+
| "os_sync_wait_on_address"
393+
| "os_sync_wait_on_address_flags_t"
394+
| "os_sync_wait_on_address_with_deadline"
395+
| "os_sync_wait_on_address_with_timeout" => true,
396+
377397
_ => false,
378398
}
379399
});

0 commit comments

Comments
 (0)