mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Fixes for tests with weak pointers in notification observers.
This commit is contained in:
parent
b41e352662
commit
0ede979d15
5 changed files with 15 additions and 6 deletions
|
@ -6,13 +6,14 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
id testObject = nil;
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
id testObject = nil;
|
||||
|
||||
test_alloc(@"NSConnection");
|
||||
testObject = [NSConnection new];
|
||||
test_NSObject(@"NSConnection",[NSArray arrayWithObject:testObject]);
|
||||
test_NSObject(@"NSConnection", [NSArray arrayWithObject: testObject]);
|
||||
testObject = [NSConnection defaultConnection];
|
||||
PASS(testObject != nil && [testObject isKindOfClass:[NSConnection class]],
|
||||
PASS(testObject != nil && [testObject isKindOfClass: [NSConnection class]],
|
||||
"NSConnection +defaultConnection works");
|
||||
|
||||
[arp release]; arp = nil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue