diff options
| author | Steve M. Robbins <smr@sumost.ca> | 2001-09-23 05:09:15 +0000 |
|---|---|---|
| committer | Steve M. Robbins <smr@sumost.ca> | 2001-09-23 05:09:15 +0000 |
| commit | 8270594d083e6fb7cdcba52351e7febb546ac299 (patch) | |
| tree | c5abc842cdf766b0c06093c363efa8d8f2875cde /include/cppunit | |
| parent | a48490973bbbc43541385116c1efa03657538e7e (diff) | |
| download | cppunit-8270594d083e6fb7cdcba52351e7febb546ac299.tar.gz | |
Polishing for 1.6.0 release.
Diffstat (limited to 'include/cppunit')
| -rw-r--r-- | include/cppunit/Portability.h | 10 | ||||
| -rw-r--r-- | include/cppunit/extensions/HelperMacros.h | 14 |
2 files changed, 22 insertions, 2 deletions
diff --git a/include/cppunit/Portability.h b/include/cppunit/Portability.h index 2fa2bbe..d4a0652 100644 --- a/include/cppunit/Portability.h +++ b/include/cppunit/Portability.h @@ -19,11 +19,17 @@ /* Define to 1 if you wish to have the old-style macros assert(), assertEqual(), assertDoublesEqual(), and assertLongsEqual() */ #ifndef CPPUNIT_ENABLE_NAKED_ASSERT -#define CPPUNIT_ENABLE_NAKED_ASSERT 0 +#define CPPUNIT_ENABLE_NAKED_ASSERT 0 #endif +/* Define to 1 if you wish to have the old-style CU_TEST family + of macros. */ +#ifndef CPPUNIT_ENABLE_CU_TEST_MACROS +#define CPPUNIT_ENABLE_CU_TEST_MACROS 0 +#endif -/* Define to 1 if the preprocessor expands (#foo) to "foo" (quotes incl.) */ +/* Define to 1 if the preprocessor expands (#foo) to "foo" (quotes incl.) + I don't think there is any C preprocess that does NOT support this! */ #ifndef CPPUNIT_HAVE_CPP_SOURCE_ANNOTATION #define CPPUNIT_HAVE_CPP_SOURCE_ANNOTATION 1 #endif diff --git a/include/cppunit/extensions/HelperMacros.h b/include/cppunit/extensions/HelperMacros.h index 495f97c..fa38f12 100644 --- a/include/cppunit/extensions/HelperMacros.h +++ b/include/cppunit/extensions/HelperMacros.h @@ -210,4 +210,18 @@ __CPPUNIT_MAKE_UNIQUE_NAME(__autoRegisterSuite ) +// Backwards compatibility +// (Not tested!) + +#if CPPUNIT_ENABLE_CU_TEST_MACROS + +#define CU_TEST_SUITE(tc) CPPUNIT_TEST_SUITE(tc) +#define CU_TEST_SUB_SUITE(tc,sc) CPPUNIT_TEST_SUB_SUITE(tc,sc) +#define CU_TEST(tm) CPPUNIT_TEST(tm) +#define CU_TEST_SUITE_END() CPPUNIT_TEST_SUITE_END() +#define CU_TEST_SUITE_REGISTRATION(tc) CPPUNIT_TEST_SUITE_REGISTRATION(tc) + +#endif + + #endif // CPPUNIT_EXTENSIONS_HELPERMACROS_H |
