From: Paul RASCLE Date: Sun, 22 May 2016 09:07:44 +0000 (+0200) Subject: still an exception on HYDRO_tests exit, all tests OK X-Git-Tag: v1.6~113^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4ce8941fd1ca32c6c06eb8bef0f6d6c155b3a34c;p=modules%2Fhydro.git still an exception on HYDRO_tests exit, all tests OK --- diff --git a/src/HYDRO_tests/test_HYDROData_Main.cxx b/src/HYDRO_tests/test_HYDROData_Main.cxx index 4c6741aa..c6a979d0 100644 --- a/src/HYDRO_tests/test_HYDROData_Main.cxx +++ b/src/HYDRO_tests/test_HYDROData_Main.cxx @@ -30,6 +30,9 @@ #include #include +#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; }