diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-06-14 14:30:10 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-06-14 14:30:10 +0000 |
commit | 5f2c40bf66d37dac3547078ecf3a3f0d86848be0 (patch) | |
tree | 165993c199f520a6210dc2d918257800454e76ca /Foundation/GTMNSFileManager+PathTest.m | |
parent | ee2f682c1d6a20ca483812450c5fa666ec986f15 (diff) |
[Author: thomasvl]
Fix wrong CPP gate.
TBR=dmaclach
Diffstat (limited to 'Foundation/GTMNSFileManager+PathTest.m')
-rw-r--r-- | Foundation/GTMNSFileManager+PathTest.m | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Foundation/GTMNSFileManager+PathTest.m b/Foundation/GTMNSFileManager+PathTest.m index cfcab0c..749c151 100644 --- a/Foundation/GTMNSFileManager+PathTest.m +++ b/Foundation/GTMNSFileManager+PathTest.m @@ -30,7 +30,7 @@ - (void)setUp { // make a directory to scribble in NSFileManager *fm = [NSFileManager defaultManager]; - baseDir_ + baseDir_ = [[fm gtm_createTemporaryDirectoryBasedOn:@"GTMNSFileManager_PathTestXXXXXX"] retain]; } @@ -53,7 +53,7 @@ } } -#if GTM_MACOSX_SDK && (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) +#if GTM_MACOS_SDK && (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) - (void)testCreateFullPathToDirectoryAttributes { STAssertNotNil(baseDir_, @"setUp failed"); @@ -82,7 +82,7 @@ @"Should have failed when passed (nil)"); } -#endif // GTM_MACOSX_SDK && (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) +#endif // GTM_MACOS_SDK && (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) - (void)testfilePathsWithExtensionsInDirectory { STAssertNotNil(baseDir_, @"setUp failed"); @@ -129,9 +129,9 @@ #if GTM_IPHONE_SDK || (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5) NSError *error = nil; STAssertTrue([fm createDirectoryAtPath:testDir - withIntermediateDirectories:YES - attributes:nil - error:&error], + withIntermediateDirectories:YES + attributes:nil + error:&error], @"Can't create %@ (%@)", testDir, error); #else STAssertTrue([fm createDirectoryAtPath:testDir attributes:nil], nil); @@ -238,15 +238,15 @@ NSString *emptyDir = [baseDir_ stringByAppendingPathComponent:@"emptyDir"]; #if GTM_IPHONE_SDK || (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5) NSError *error = nil; - STAssertTrue([fm createDirectoryAtPath:emptyDir - withIntermediateDirectories:YES - attributes:nil - error:&error], + STAssertTrue([fm createDirectoryAtPath:emptyDir + withIntermediateDirectories:YES + attributes:nil + error:&error], @"Can't create %@ (%@)", emptyDir, error); #else STAssertTrue([fm createDirectoryAtPath:emptyDir attributes:nil], nil); #endif // MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 - + // single matches = [fm gtm_filePathsWithExtension:@"txt" inDirectory:emptyDir]; |