summaryrefslogtreecommitdiff
path: root/TAO/tests/DII_Collocation_Tests/oneway/Collocated_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/DII_Collocation_Tests/oneway/Collocated_Test.cpp')
-rw-r--r--TAO/tests/DII_Collocation_Tests/oneway/Collocated_Test.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/TAO/tests/DII_Collocation_Tests/oneway/Collocated_Test.cpp b/TAO/tests/DII_Collocation_Tests/oneway/Collocated_Test.cpp
index 13f6ba38c74..92ee6a2eb9a 100644
--- a/TAO/tests/DII_Collocation_Tests/oneway/Collocated_Test.cpp
+++ b/TAO/tests/DII_Collocation_Tests/oneway/Collocated_Test.cpp
@@ -56,15 +56,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);
+ server_orb.c_str ());
ACE_Manual_Event me;
Server_Task server_task (output,
@@ -87,8 +85,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);
+ client_orb.c_str ());
Client_Task client_task (input,
simple_test_input,
@@ -123,10 +120,9 @@ main (int argc, char *argv[])
return 1;
}
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
// Ignore exceptions..
}
- ACE_ENDTRY;
return 0;
}