diff options
Diffstat (limited to 'Foundation/GTMPathTest.m')
-rw-r--r-- | Foundation/GTMPathTest.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Foundation/GTMPathTest.m b/Foundation/GTMPathTest.m index 3130c4f..0570bb3 100644 --- a/Foundation/GTMPathTest.m +++ b/Foundation/GTMPathTest.m @@ -46,7 +46,11 @@ // Make sure it's safe to remove this directory before nuking it. STAssertNotNil(testDirectory_, nil); STAssertNotEqualObjects(testDirectory_, @"/", nil); +#if MAC_OS_X_VERSION_MIN_REQUIRED < 1050 [[NSFileManager defaultManager] removeFileAtPath:testDirectory_ handler:nil]; +#else + [[NSFileManager defaultManager] removeItemAtPath:testDirectory_ error:NULL]; +#endif } - (void)testBasicCreation { |