From: secher Date: Mon, 22 Nov 2004 10:07:48 +0000 (+0000) Subject: take account of trace modification X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5feb2022bd4bd89185dde0a066c0dade42c79368;p=modules%2Fkernel.git take account of trace modification --- diff --git a/src/TestContainer/TestContainer.cxx b/src/TestContainer/TestContainer.cxx index 25eeed28b..a0a5d3f3a 100644 --- a/src/TestContainer/TestContainer.cxx +++ b/src/TestContainer/TestContainer.cxx @@ -39,6 +39,7 @@ #include "Utils_SINGLETON.hxx" #include "Utils_SALOME_Exception.hxx" #include "Utils_CommException.hxx" +#include "LocalTraceCollector.hxx" using namespace std; static ostream& operator<<(ostream& os, const CORBA::Exception& e) @@ -62,10 +63,13 @@ static ostream& operator<<(ostream& os, const CORBA::Exception& e) int main (int argc, char * argv[]) { + // Initializing omniORB + ORB_INIT &init = *SINGLETON_::Instance() ; + CORBA::ORB_var &orb = init( argc , argv ) ; + LocalTraceCollector *myThreadTrace = LocalTraceCollector::instance(orb); + try { - // Initializing omniORB - CORBA::ORB_var orb = CORBA::ORB_init(argc, argv); // use IOR to find container //if (argc != 2) { return 1; } @@ -221,6 +225,7 @@ int main (int argc, char * argv[]) INFOS("Caught unknown exception.") } + delete myThreadTrace; return 0; }