make tests pass on os-x 14.5

This commit is contained in:
Richard Frith-Macdonald 2024-07-17 11:32:52 +01:00
parent 1a1e7f7fc5
commit a0a62fbde4
4 changed files with 12 additions and 6 deletions

View file

@ -8,12 +8,14 @@
int main()
{
START_SET("NSMapTable weak objects")
#if !__APPLE__ // We assume that apple systems support zeroing weak pointers
#ifdef OBJC_CAP_ARC
if (!objc_test_capability(OBJC_CAP_ARC))
#endif
{
SKIP("ARC support unavailable")
}
#endif
NSAutoreleasePool *arp = [NSAutoreleasePool new];
NSMapTable *mapTable = [NSMapTable strongToWeakObjectsMapTable];