Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/ActionSequenceTest.cpp

    rf59d81 rcc04b7  
    1313#include "Actions/Action.hpp"
    1414#include "Actions/ActionSequence.hpp"
    15 
    16 #ifdef HAVE_TESTRUNNER
    17 #include "UnitTestMain.hpp"
    18 #endif /*HAVE_TESTRUNNER*/
    19 
    20 /********************************************** Test classes **************************************/
    2115
    2216// Registers the fixture into the 'registry'
     
    175169  CPPUNIT_ASSERT_EQUAL(false,shouldNotCall2->wasCalled());
    176170
    177   delete sequence;
    178171}
    179172
     
    197190  CPPUNIT_ASSERT_EQUAL(false,shouldNotCall2->wasCalled());
    198191
    199   delete sequence;
    200 }
    201 
    202 
     192}
     193
     194
     195/********************************************** Main routine **************************************/
     196
     197int main(int argc, char **argv)
     198{
     199  // Get the top level suite from the registry
     200  CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
     201
     202  // Adds the test to the list of test to run
     203  CppUnit::TextUi::TestRunner runner;
     204  runner.addTest( suite );
     205
     206  // Change the default outputter to a compiler error format outputter
     207  runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),
     208                                                       std::cerr ) );
     209  // Run the tests.
     210  bool wasSucessful = runner.run();
     211
     212  // Return error code 1 if the one of test failed.
     213  return wasSucessful ? 0 : 1;
     214};
Note: See TracChangeset for help on using the changeset viewer.