From 4ce8941fd1ca32c6c06eb8bef0f6d6c155b3a34c Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Sun, 22 May 2016 11:07:44 +0200 Subject: [PATCH] still an exception on HYDRO_tests exit, all tests OK --- src/HYDRO_tests/test_HYDROData_Main.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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; } -- 2.39.2