aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting/GTMGoogleTestRunner.mm
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2014-02-24 20:30:07 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2014-02-24 20:30:07 +0000
commit47698affec42b20e572fc9bfbe6563e5b39391c3 (patch)
treea9d66eff90a18724ace88daa2aad4eb9223213ef /UnitTesting/GTMGoogleTestRunner.mm
parentc1d255be26ea580b559e9946eb48e2adfaa3db9b (diff)
More support for allowing GTM to compile with -Wundef.
DELTA=8 (8 added, 0 deleted, 0 changed)
Diffstat (limited to 'UnitTesting/GTMGoogleTestRunner.mm')
-rw-r--r--UnitTesting/GTMGoogleTestRunner.mm6
1 files changed, 6 insertions, 0 deletions
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