summaryrefslogtreecommitdiff
path: root/TAO/tests/Blocking_Sync_None/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Blocking_Sync_None/client.cpp')
-rw-r--r--TAO/tests/Blocking_Sync_None/client.cpp27
1 files changed, 11 insertions, 16 deletions
diff --git a/TAO/tests/Blocking_Sync_None/client.cpp b/TAO/tests/Blocking_Sync_None/client.cpp
index 49fe51a87e4..422a95b6410 100644
--- a/TAO/tests/Blocking_Sync_None/client.cpp
+++ b/TAO/tests/Blocking_Sync_None/client.cpp
@@ -45,19 +45,19 @@ parse_args (int argc, char *argv[])
int
main (int argc, char *argv[])
{
- ACE_TRY_NEW_ENV
+ try
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (argc, argv, "");
if (parse_args (argc, argv) != 0)
return 1;
CORBA::Object_var tmp =
- orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
+ orb->string_to_object(ior);
Test::Blocking_Sync_None_var blocking_sync_none =
- Test::Blocking_Sync_None::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
+ Test::Blocking_Sync_None::_narrow(tmp.in ());
if (CORBA::is_nil (blocking_sync_none.in ()))
ACE_ERROR_RETURN ((LM_DEBUG,
@@ -66,10 +66,10 @@ main (int argc, char *argv[])
1);
CORBA::Object_var object =
- orb->resolve_initial_references ("PolicyCurrent" ACE_ENV_ARG_PARAMETER);
+ orb->resolve_initial_references ("PolicyCurrent");
CORBA::PolicyCurrent_var policy_current =
- CORBA::PolicyCurrent::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
+ CORBA::PolicyCurrent::_narrow (object.in ());
if (CORBA::is_nil (policy_current.in ()))
{
@@ -82,11 +82,9 @@ main (int argc, char *argv[])
CORBA::PolicyList policies(1); policies.length (1);
policies[0] =
orb->create_policy (Messaging::SYNC_SCOPE_POLICY_TYPE,
- scope_as_any
- ACE_ENV_ARG_PARAMETER);
+ scope_as_any);
- policy_current->set_policy_overrides (policies, CORBA::ADD_OVERRIDE
- ACE_ENV_ARG_PARAMETER);
+ policy_current->set_policy_overrides (policies, CORBA::ADD_OVERRIDE);
policies[0]->destroy ();
@@ -104,8 +102,7 @@ main (int argc, char *argv[])
ACE_Time_Value start = ACE_OS::gettimeofday ();
blocking_sync_none->slow_operation (payload,
- sleep_microseconds
- ACE_ENV_ARG_PARAMETER);
+ sleep_microseconds);
ACE_Time_Value elapsed = ACE_OS::gettimeofday ();
elapsed -= start;
@@ -135,13 +132,11 @@ main (int argc, char *argv[])
blocked_calls));
}
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
+ ex._tao_print_exception ("Exception caught:");
return 1;
}
- ACE_ENDTRY;
return 0;
}