From 4f89cfe836e82f9445b98d733d6eb54b86e609d2 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Fri, 14 May 2010 19:35:54 +0000 Subject: [Author: dmaclach] There are still a couple of errors occurring, but this fixes up the majority of stuff. I figured I'd send it out to you now to take a look at in the morning, and then we can clean up the last couple of issues. Not quite sure what to do about the naming of data files so that we can encompass ranges of system version (e.g. this file applies to 10.5 and 10.6 but not 10.4 or 10.7. R=thomasvl DELTA=10598 (10211 added, 70 deleted, 317 changed) --- Foundation/GTMNSString+FindFolderTest.m | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Foundation/GTMNSString+FindFolderTest.m') diff --git a/Foundation/GTMNSString+FindFolderTest.m b/Foundation/GTMNSString+FindFolderTest.m index 66fd329..aae48cb 100644 --- a/Foundation/GTMNSString+FindFolderTest.m +++ b/Foundation/GTMNSString+FindFolderTest.m @@ -69,9 +69,15 @@ doCreate:NO]; STAssertEqualObjects(gtmCachePath2, gtmCachePath, nil); +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 + NSError *error = nil; + BOOL didRemove = [fileMgr removeItemAtPath:gtmCachePath error:&error]; + STAssertTrue(didRemove, @"Error removing %@ (%@)", gtmCachePath, error); +#else BOOL didRemove = [fileMgr removeFileAtPath:gtmCachePath handler:nil]; STAssertTrue(didRemove, @"Error removing %@", gtmCachePath); +#endif // MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 } @end -- cgit v1.2.3