diff options
-rw-r--r-- | GTMDefines.h | 2 | ||||
-rw-r--r-- | UnitTesting/GTMGoogleTestRunner.mm | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/GTMDefines.h b/GTMDefines.h index 1e6fa3f..14ffa7e 100644 --- a/GTMDefines.h +++ b/GTMDefines.h @@ -193,9 +193,11 @@ // For iPhone specific stuff #define GTM_IPHONE_SDK 1 #if TARGET_IPHONE_SIMULATOR + #define GTM_IPHONE_DEVICE 0 #define GTM_IPHONE_SIMULATOR 1 #else #define GTM_IPHONE_DEVICE 1 + #define GTM_IPHONE_SIMULATOR 0 #endif // TARGET_IPHONE_SIMULATOR // By default, GTM has provided it's own unittesting support, define this // to use the support provided by Xcode, especially for the Xcode4 support diff --git a/UnitTesting/GTMGoogleTestRunner.mm b/UnitTesting/GTMGoogleTestRunner.mm index 5bc1d5f..3151eb3 100644 --- a/UnitTesting/GTMGoogleTestRunner.mm +++ b/UnitTesting/GTMGoogleTestRunner.mm @@ -46,6 +46,12 @@ // - Write some C++ tests and add them to your test bundle sources. // - Build and run tests. Your C++ tests should just execute. +// If you are using this with XCTest (as opposed to SenTestingKit) +// make sure to define GTM_USING_XCTEST. +#ifndef GTM_USING_XCTEST +#define GTM_USING_XCTEST 0 +#endif + #if GTM_USING_XCTEST #import <XCTest/XCTest.h> #define SenTestCase XCTestCase |