34 #include <cppunit/extensions/TestFactoryRegistry.h>
35 #include <cppunit/ui/text/TestRunner.h>
37 int main(
int argc,
char *argv[]) {
38 bool wasSuccessful =
false;
41 CppUnit::TextUi::TestRunner runner;
42 CppUnit::TestFactoryRegistry ®istry =
43 CppUnit::TestFactoryRegistry::getRegistry();
45 runner.addTest(registry.makeTest());
46 wasSuccessful = runner.run(
"",
false,
true,
true);
48 catch (std::exception& e) {
49 std::cout << e.what() << std::endl;
52 std::cout <<
"Caught unknown exception!" << std::endl;