Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/unittests/gslvectorunittest.cpp

    rb11d3b rbf3817  
    55 *      Author: heber
    66 */
     7
     8// include config.h
     9#ifdef HAVE_CONFIG_H
     10#include <config.h>
     11#endif
    712
    813using namespace std;
     
    1318
    1419#include "gslvectorunittest.hpp"
     20
     21#ifdef HAVE_TESTRUNNER
     22#include "UnitTestMain.hpp"
     23#endif /*HAVE_TESTRUNNER*/
    1524
    1625/********************************************** Test classes **************************************/
     
    114123};
    115124
    116 
    117125/** UnitTest for operators.
    118126 */
     
    160168  CPPUNIT_ASSERT_EQUAL( true, unit.IsOne() );
    161169};
    162 
    163 /********************************************** Main routine **************************************/
    164 
    165 int main(int argc, char **argv)
    166 {
    167   // Get the top level suite from the registry
    168   CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
    169 
    170   // Adds the test to the list of test to run
    171   CppUnit::TextUi::TestRunner runner;
    172   runner.addTest( suite );
    173 
    174   // Change the default outputter to a compiler error format outputter
    175   runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),
    176                                                        std::cerr ) );
    177   // Run the tests.
    178   bool wasSucessful = runner.run();
    179 
    180   // Return error code 1 if the one of test failed.
    181   return wasSucessful ? 0 : 1;
    182 };
Note: See TracChangeset for help on using the changeset viewer.