- File:
-
- 1 edited
-
src/unittests/ActionSequenceTest.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/ActionSequenceTest.cpp
rcc04b7 rf59d81 13 13 #include "Actions/Action.hpp" 14 14 #include "Actions/ActionSequence.hpp" 15 16 #ifdef HAVE_TESTRUNNER 17 #include "UnitTestMain.hpp" 18 #endif /*HAVE_TESTRUNNER*/ 19 20 /********************************************** Test classes **************************************/ 15 21 16 22 // Registers the fixture into the 'registry' … … 169 175 CPPUNIT_ASSERT_EQUAL(false,shouldNotCall2->wasCalled()); 170 176 177 delete sequence; 171 178 } 172 179 … … 190 197 CPPUNIT_ASSERT_EQUAL(false,shouldNotCall2->wasCalled()); 191 198 192 } 193 194 195 /********************************************** Main routine **************************************/ 196 197 int 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 }; 199 delete sequence; 200 } 201 202
Note:
See TracChangeset
for help on using the changeset viewer.
