More host tweaks

This commit is contained in:
rfm 2025-05-27 14:11:54 +01:00
parent 19a0a8d10b
commit 0c4498a7cc
3 changed files with 9 additions and 16 deletions

View file

@ -6,8 +6,11 @@
int main()
{
NSAutoreleasePool *arp = [NSAutoreleasePool new];
test_NSObject(@"NSHost",[NSArray arrayWithObject:[NSHost currentHost]]);
NSAutoreleasePool *arp = [NSAutoreleasePool new];
NSHost *h = [NSHost currentHost];
test_NSObject(@"NSHost", [NSArray arrayWithObject: h]);
NSLog(@"%@", h);
[arp release]; arp = nil;
return 0;
}

View file

@ -18,6 +18,7 @@ int main()
localh = [NSHost localHost];
PASS(localh != nil && [localh isKindOfClass: [NSHost class]],
"NSHost understands +localHost");
NSLog(@"localHost: %@", localh);
#else
localh = current;
#endif