From db82cd9ae80c2428fc2cf93b46c21b6360b37f0b Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Tue, 8 Sep 2009 17:15:31 +0000 Subject: [Author: dmaclach] Fix up test so that it doesn't run on Tiger. R=thomasvl,alcor DELTA=3 (3 added, 0 deleted, 0 changed) --- AppKit/GTMNSImage+SearchCacheTest.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'AppKit') diff --git a/AppKit/GTMNSImage+SearchCacheTest.m b/AppKit/GTMNSImage+SearchCacheTest.m index 51c2693..f18b12a 100644 --- a/AppKit/GTMNSImage+SearchCacheTest.m +++ b/AppKit/GTMNSImage+SearchCacheTest.m @@ -35,9 +35,12 @@ testImage = [NSImage gtm_imageNamed:@"com.apple.Xcode"]; STAssertNotNil(testImage, nil); +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 + // The stencil images only exist on 10.5+ testImage = [NSImage gtm_imageNamed:NSImageNameBonjour]; STAssertNotNil(testImage, nil); - +#endif // MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 + testImage = [NSImage gtm_imageNamed:(NSString *)kUTTypeFolder]; STAssertNotNil(testImage, nil); -- cgit v1.2.3