From: secher Date: Mon, 17 Dec 2007 08:42:12 +0000 (+0000) Subject: debug when SupervContainer is launched X-Git-Tag: V4_1_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bb0ae2e60b186332cbd3c1634a2ff061859be5a0;p=modules%2Fkernel.git debug when SupervContainer is launched --- diff --git a/src/LifeCycleCORBA/TestContainerManager.cxx b/src/LifeCycleCORBA/TestContainerManager.cxx index 9313aace7..b908e90f8 100644 --- a/src/LifeCycleCORBA/TestContainerManager.cxx +++ b/src/LifeCycleCORBA/TestContainerManager.cxx @@ -49,6 +49,7 @@ int main (int argc, char * argv[]) Engines::Component_ptr compo; bool error = false; bool bestImplemented; + int status; // Initializing omniORB ORB_INIT &init = *SINGLETON_::Instance() ; @@ -147,17 +148,19 @@ int main (int argc, char * argv[]) } } } - if( ((cmax-cmin) <= 1) && (fmax == 10/nbpmax) && !error ){ - string msg; + string msg; + if( ((cmax-cmin) <= 2) && (fmax == 10/nbpmax) && !error ){ if(bestImplemented) msg = "TEST OK"; else msg = "TEST OK but FindBest not implemented!"; - MESSAGE(msg); - return 0; + status=0; } else{ - MESSAGE("TEST KO"); - return 1; + msg ="TEST KO"; + status=1; } + cout << msg << endl; + + return status; }