diff options
Diffstat (limited to 'TAO/tests/IDL_Test/main.cpp')
-rw-r--r-- | TAO/tests/IDL_Test/main.cpp | 39 |
1 files changed, 12 insertions, 27 deletions
diff --git a/TAO/tests/IDL_Test/main.cpp b/TAO/tests/IDL_Test/main.cpp index 2c39344eabf..52b623edf02 100644 --- a/TAO/tests/IDL_Test/main.cpp +++ b/TAO/tests/IDL_Test/main.cpp @@ -89,31 +89,24 @@ main (int argc , char *argv[]) { int error_count = 0; - ACE_TRY_NEW_ENV + try { CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, - "" - ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; + ""); CORBA::Object_var poa_object = - orb->resolve_initial_references ("RootPOA" - ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; + orb->resolve_initial_references ("RootPOA"); PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in () - ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; + PortableServer::POA::_narrow (poa_object.in ()); // Test of #pragma prefix behavior. CORBA::Object_var obj; hello_i h; - obj = h._this (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_TRY_CHECK; + obj = h._this (); if (ACE_OS::strcmp (obj->_interface_repository_id (), "IDL:anvil.com/hello:1.0")) @@ -124,8 +117,7 @@ main (int argc , char *argv[]) } goodbye_i g; - obj = g._this (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_TRY_CHECK; + obj = g._this (); if (ACE_OS::strcmp (obj->_interface_repository_id (), "IDL:anvil.com/goodbye:1.0")) @@ -136,8 +128,7 @@ main (int argc , char *argv[]) } sayonara_i s; - obj = s._this (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_TRY_CHECK; + obj = s._this (); if (ACE_OS::strcmp (obj->_interface_repository_id (), "IDL:hammer.com/salutation/sayonara:1.0")) @@ -148,8 +139,7 @@ main (int argc , char *argv[]) } ciao_i c; - obj = c._this (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_TRY_CHECK; + obj = c._this (); if (ACE_OS::strcmp (obj->_interface_repository_id (), "IDL:anvil.com/ciao:1.0")) @@ -160,8 +150,7 @@ main (int argc , char *argv[]) } aloha_i a; - obj = a._this (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_TRY_CHECK; + obj = a._this (); if (ACE_OS::strcmp (obj->_interface_repository_id (), "IDL:anvil.com/aloha:1.0")) @@ -353,17 +342,13 @@ main (int argc , char *argv[]) } root_poa->destroy (1, - 1 - ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; + 1); } - ACE_CATCHANY + catch (const CORBA::Exception& ex) { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "Unexpected exception in main"); + ex._tao_print_exception ("Unexpected exception in main"); return 1; } - ACE_ENDTRY; return error_count; } |