Skip to content

Commit

Permalink
[TEST] Re-enable failing ordered relationship test code to test rentz…
Browse files Browse the repository at this point in the history
  • Loading branch information
rentzsch committed Dec 3, 2012
1 parent ce9cae1 commit 433ec8b
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions test/test.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,33 +58,14 @@ int main(int argc, char *argv[]) {
ChildMO *lisa = [ChildMO insertInManagedObjectContext:moc];
lisa.humanName = lisa.childName = @"lisa";
[lisa setIvar:1.0];

#if 0
/* Unforunately this section raises the following internal exception on 10.8.0/Xcode 4.5-DP4:
2012-08-30 16:01:12.351 test[15090:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSSet intersectsSet:]: set argument is not an NSSet'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8c9b1716 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff94dee470 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8ca4b21f -[NSSet intersectsSet:] + 927
3 Foundation 0x00007fff8e502085 NSKeyValueWillChangeBySetMutation + 359
4 Foundation 0x00007fff8e5549d0 NSKeyValueWillChange + 379
5 Foundation 0x00007fff8e501f0f -[NSObject(NSKeyValueObserverNotification) willChangeValueForKey:withSetMutation:usingObjects:] + 318
6 CoreData 0x00007fff95e697e5 _sharedIMPL_addObjectToSet_core + 165
7 test 0x000000010d44ee6e main + 2606
8 libdyld.dylib 0x00007fff977127e1 start + 0
)
libc++abi.dylib: terminate called throwing an exception
Abort trap: 6
*/

[homer addChildrenObject:bart];
[homer addChildrenObject:lisa];
[marge addChildrenObject:bart];
[marge addChildrenObject:lisa];

NSCAssert([homer.children count] == 2, nil);
NSCAssert([marge.children count] == 2, nil);
#endif

//--

Expand Down

0 comments on commit 433ec8b

Please sign in to comment.