summaryrefslogtreecommitdiff
path: root/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp')
-rw-r--r--TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp b/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp
index f4e4a6b9615..1bb9dcf3336 100644
--- a/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp
+++ b/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp
@@ -49,16 +49,13 @@ main (int argc, char *argv[])
argv) == -1)
return -1;
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
+ try
{
ACE_Argv_Type_Converter satc (argc, argv);
CORBA::ORB_var sorb =
CORBA::ORB_init (satc.get_argc (),
satc.get_TCHAR_argv (),
- server_orb.c_str ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ server_orb.c_str ());
ACE_Manual_Event me;
Server_Task server_task (output,
@@ -80,9 +77,7 @@ main (int argc, char *argv[])
CORBA::ORB_var corb =
CORBA::ORB_init (catc.get_argc (),
catc.get_TCHAR_argv (),
- client_orb.c_str ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ client_orb.c_str ());
Client_Task client_task (input,
corb.in (),
@@ -97,10 +92,9 @@ main (int argc, char *argv[])
ACE_Thread_Manager::instance ()->wait ();
}
- ACE_CATCHANY
+ catch (const CORBA::Exception&)
{
// Ignore exceptions..
}
- ACE_ENDTRY;
return 0;
}