diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-25 01:10:05 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-25 01:10:05 -0400 |
commit | 79a79766000a6440f651af50cfac3646171e8f0a (patch) | |
tree | 1b5a9a419ffd65770fd36ec55f9c0a608e5b1045 /test/UnitTests.cc | |
parent | 1ae1033090faf566f8577cc63ac10a2d4e0e1f7f (diff) | |
download | fork-ledger-79a79766000a6440f651af50cfac3646171e8f0a.tar.gz fork-ledger-79a79766000a6440f651af50cfac3646171e8f0a.tar.bz2 fork-ledger-79a79766000a6440f651af50cfac3646171e8f0a.zip |
Reorganized Ledger so that it builds as 7 separate libraries. This is mainly
to prove to myself that it has proper decoupling between prior code areas.
Diffstat (limited to 'test/UnitTests.cc')
-rw-r--r-- | test/UnitTests.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/test/UnitTests.cc b/test/UnitTests.cc index f6a27d3e..9095da85 100644 --- a/test/UnitTests.cc +++ b/test/UnitTests.cc @@ -8,15 +8,12 @@ #include <cppunit/extensions/TestFactoryRegistry.h> #include "UnitTests.h" - +#include "utils.h" // Create the CppUnit registry CPPUNIT_REGISTRY_ADD_TO_DEFAULT("Framework"); -CPPUNIT_REGISTRY_ADD_TO_DEFAULT("numerics"); -CPPUNIT_REGISTRY_ADD_TO_DEFAULT("utility"); - // Create a sample test, which acts both as a template, and a // verification that the basic framework is functioning. @@ -45,7 +42,6 @@ private: CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(UnitTests, "framework"); - // Create the various runners and commence running the tests! int main(int argc, char* argv[]) @@ -82,12 +78,12 @@ int main(int argc, char* argv[]) runner.addTest(CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest()); try { IF_VERIFY() - initialize_memory_tracing(); + ledger::initialize_memory_tracing(); runner.run(controller, testPath); IF_VERIFY() - shutdown_memory_tracing(); + ledger::shutdown_memory_tracing(); // Print test in a compiler compatible format. CPPUNIT_NS::CompilerOutputter outputter(&result, CPPUNIT_NS::stdCOut()); @@ -103,9 +99,7 @@ int main(int argc, char* argv[]) #endif } catch (std::invalid_argument &e) { // Test path not resolved - CPPUNIT_NS::stdCOut() << "\n" - << "ERROR: " << e.what() - << "\n"; + CPPUNIT_NS::stdCOut() << "\nERROR: " << e.what() << "\n"; return 0; } |