4 #include "ace/Log_Msg.h"
5 #include "ace/SString.h"
6 #include "tao/Exception.h"
7 #include "tao/Environment.h"
9 #define TEST_APP_MAIN(APP_TYPE) \
11 ACE_TMAIN(int argc, ACE_TCHAR *argv[])\
13 ACE_LOG_MSG->priority_mask(LM_TRACE | \
22 ACE_Log_Msg::PROCESS); \
28 int ret = app.run(argc,argv); \
32 catch (const CORBA::Exception& ex) \
34 ex._tao_print_exception ("Caught exception:"); \
38 ACE_ERROR((LM_ERROR, \
39 "(%P|%t) Unknown (...) exception caught in main() " \
40 "for App [%d].\n", app.name())); \