#include <QColor>
#include <QTest>
+#define _DEVDEBUG_
+#include "HYDRO_trace.hxx"
+
int main( int argc, char* argv[] )
{
QApplication anApp( argc, argv );
CppUnit::TestFactoryRegistry::getRegistry();
// Add the top suite to the test runner
TestLib_Runner runner;
- //QString aPath = qgetenv( "HYDRO_SRC_DIR" ) + "/src/tests.cfg";
- //runner.Load( aPath.toStdString() );
+ QString aPath = qgetenv( "HYDRO_SRC_DIR" ) + "/src/tests.cfg";
+ runner.Load( aPath.toStdString() );
runner.addTest( registry.makeTest() );
try
{
<< std::endl;
return 0;
}
-
- //anApp.exec();
+ bool isOK = result.wasSuccessful();
+ DEBTRACE("End of tests");
+ aWindow->close();
+ aSession.closeSession();
+ anApp.exit(!isOK);
+ DEBTRACE("--- TODO: exception on exit..."); // TODO: exception on exit...
return result.wasSuccessful() ? 0 : 1;
}