From 7063d76a007fbf636250d7199d6f24ec487163b1 Mon Sep 17 00:00:00 2001 From: "thomasvl@gmail.com" Date: Tue, 12 Aug 2008 17:21:32 +0000 Subject: - Added GTMNSMakeUncollectable for forcing objects to survive in a GC world. - Added GTMCFAutorelease to make the [GTMNSMakeCollectable(cfFoo) autorelease] simpler and clearer, it's now just GTMCFAutorelease(cfFoo), and works in both GC and non-GC world. - Added GTMIsGarbageCollectionEnabled to GTMGarbageCollection.h. See the note there for it's usage. - Disabled the unittests for things on top of NSAppleScript in a GC world since Apple has bugs and it can crash. See the unittest for a note about it. - GTMStackTrace now can figure out ObjC symbols. Downside it is now ObjC only. - GTMFourCharCode can now be used with NSAppleEventDescriptors easily. typeType, typeKeyword, typeApplSignature, and typeEnumerated all get turned into GTMFourCharCodes. - Fixed up crash in GTMLoggerRingBufferWriter when used with GC on. - Significant updates to GTMNSAppleScript+Handler allowing you to list all handlers and properties (including inherited) and cleans up several errors in how scripting was being handled. --- Foundation/GTMStackTraceTest.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Foundation/GTMStackTraceTest.m') diff --git a/Foundation/GTMStackTraceTest.m b/Foundation/GTMStackTraceTest.m index edcb851..dd92fe9 100644 --- a/Foundation/GTMStackTraceTest.m +++ b/Foundation/GTMStackTraceTest.m @@ -35,9 +35,13 @@ @"stack trace must have < 25 lines"); NSString *firstFrame = [stacklines objectAtIndex:0]; - NSRange range = [firstFrame rangeOfString:@"GTMStackTrace"]; + NSRange range = [firstFrame rangeOfString:@"testStackTraceBasic"]; STAssertNotEquals(range.location, (NSUInteger)NSNotFound, - @"First frame should contain GTMStackTrace, stack trace: %@", + @"First frame should contain testStackTraceBasic," + " stack trace: %@", stacktrace); + range = [firstFrame rangeOfString:@"#0"]; + STAssertNotEquals(range.location, (NSUInteger)NSNotFound, + @"First frame should contain #0, stack trace: %@", stacktrace); } -- cgit v1.2.3