From 777973fd3e6e4b3cd2927277baaf7db5767d6a74 Mon Sep 17 00:00:00 2001 From: caremoli Date: Tue, 8 Jan 2008 13:06:04 +0000 Subject: [PATCH] CCAR: update from dev branch --- configure.ac | 3 +-- src/LifeCycleCORBA/TestContainerManager.cxx | 15 +++++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index 6254567d5..cc389e952 100644 --- a/configure.ac +++ b/configure.ac @@ -250,7 +250,6 @@ echo CHECK_LIBXML - fi # --- end test corba # ---------------------------------------------------------------------------- @@ -426,7 +425,7 @@ summary $basic_mandatory_products check_fatal_error $basic_mandatory_products echo -corba_mandatory_products="omniORB_ok boost_ok" +corba_mandatory_products="omniORB_ok boost_ok libxml_ok" if test x$corba_gen = xtrue; then echo --- CORBA mandatory products - default configuration: summary $corba_mandatory_products 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; } -- 2.39.2