]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
still an exception on HYDRO_tests exit, all tests OK
authorPaul RASCLE <paul.rascle@edf.fr>
Sun, 22 May 2016 09:07:44 +0000 (11:07 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Sun, 22 May 2016 09:07:44 +0000 (11:07 +0200)
src/HYDRO_tests/test_HYDROData_Main.cxx

index 4c6741aa320793c2086c21e830bb1d244f0ebc43..c6a979d04c3fbbea15a6d0f058726d9e988316bb 100644 (file)
@@ -30,6 +30,9 @@
 #include <QColor>
 #include <QTest>
 
+#define _DEVDEBUG_
+#include "HYDRO_trace.hxx"
+
 int main( int argc, char* argv[] )
 {
   QApplication anApp( argc, argv );
@@ -86,7 +89,11 @@ int main( int argc, char* argv[] )
       << 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;
 }