Go to the documentation of this file.
17 #ifndef __SSRC_WISP_TEST_TEST_MAIN_H
18 #define __SSRC_WISP_TEST_TEST_MAIN_H
20 #include <cppunit/TestCase.h>
21 #include <cppunit/extensions/HelperMacros.h>
22 #include <cppunit/extensions/TestFactoryRegistry.h>
23 #include <cppunit/TextTestRunner.h>
25 using CppUnit::TestCase;
26 using CppUnit::TestFactoryRegistry;
27 using CppUnit::TextTestRunner;
29 #define WISP_TEST_MAIN(init_hook) \
30 int main(int argc, char **argv) { \
31 TextTestRunner runner; \
32 TestFactoryRegistry & registry = TestFactoryRegistry::getRegistry();\
36 runner.addTest(registry.makeTest());\
38 return (runner.run() ? 0 : -1);\
Copyright © 2006-2012 Savarese Software Research Corporation. All rights reserved.
Copyright © 2017 Savarese Software Research Corporation. All rights reserved