Ignore:
Timestamp:
Feb 26, 2010, 1:57:01 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
78b9d9, d50264
Parents:
e65cc0 (diff), 45cc89 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'FreddiesRefactoring' into StructureRefactoring

Conflicts:

molecuilder/src/Patterns/Observer.cpp
molecuilder/src/World.cpp
molecuilder/src/boundary.cpp
molecuilder/src/molecule_dynamics.cpp
molecuilder/src/unittests/AnalysisCorrelationToPointUnitTest.cpp
molecuilder/src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp
molecuilder/src/unittests/AnalysisPairCorrelationUnitTest.cpp
molecuilder/src/unittests/Makefile.am
molecuilder/src/unittests/bondgraphunittest.cpp
molecuilder/src/unittests/listofbondsunittest.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/unittests/bondgraphunittest.cpp

    re65cc0 rdc5413  
    2424#include "periodentafel.hpp"
    2525#include "bondgraphunittest.hpp"
     26#include "World.hpp"
     27
     28#ifdef HAVE_TESTRUNNER
     29#include "UnitTestMain.hpp"
     30#endif /*HAVE_TESTRUNNER*/
    2631
    2732/********************************************** Test classes **************************************/
     
    98103  // remove molecule
    99104  World::get()->destroyMolecule(TestMolecule);
    100   // note that all the atoms are cleaned by TestMolecule
     105  // note that all the atoms, molecules, the tafel and the elements
     106  // are all cleaned when the world is destroyed
    101107  World::destroy();
     108  MemoryUsageObserver::purgeInstance();
     109  logger::purgeInstance();
    102110};
    103111
     
    123131  CPPUNIT_ASSERT_EQUAL( true , Walker->IsBondedTo(Runner) );
    124132};
    125 
    126 
    127 /********************************************** Main routine **************************************/
    128 
    129 int main(int argc, char **argv)
    130 {
    131   // Get the top level suite from the registry
    132   CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
    133 
    134   // Adds the test to the list of test to run
    135   CppUnit::TextUi::TestRunner runner;
    136   runner.addTest( suite );
    137 
    138   // Change the default outputter to a compiler error format outputter
    139   runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),
    140                                                        std::cerr ) );
    141   // Run the tests.
    142   bool wasSucessful = runner.run();
    143 
    144   // Return error code 1 if the one of test failed.
    145   return wasSucessful ? 0 : 1;
    146 };
Note: See TracChangeset for help on using the changeset viewer.