summaryrefslogtreecommitdiff
path: root/TAO/tests/Parallel_Connect_Strategy
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Parallel_Connect_Strategy')
-rw-r--r--TAO/tests/Parallel_Connect_Strategy/Test_i.cpp4
-rw-r--r--TAO/tests/Parallel_Connect_Strategy/Test_i.h4
-rw-r--r--TAO/tests/Parallel_Connect_Strategy/client.cpp15
-rw-r--r--TAO/tests/Parallel_Connect_Strategy/server.cpp23
4 files changed, 13 insertions, 33 deletions
diff --git a/TAO/tests/Parallel_Connect_Strategy/Test_i.cpp b/TAO/tests/Parallel_Connect_Strategy/Test_i.cpp
index bdf487d4a54..00b5e3bea3c 100644
--- a/TAO/tests/Parallel_Connect_Strategy/Test_i.cpp
+++ b/TAO/tests/Parallel_Connect_Strategy/Test_i.cpp
@@ -9,14 +9,14 @@ Hello::Hello (CORBA::ORB_ptr orb)
}
char *
-Hello::get_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+Hello::get_string (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return CORBA::string_dup ("Hello there!");
}
void
-Hello::shutdown (ACE_ENV_SINGLE_ARG_DECL)
+Hello::shutdown (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
diff --git a/TAO/tests/Parallel_Connect_Strategy/Test_i.h b/TAO/tests/Parallel_Connect_Strategy/Test_i.h
index 0fbcc7a4ab6..244529328a9 100644
--- a/TAO/tests/Parallel_Connect_Strategy/Test_i.h
+++ b/TAO/tests/Parallel_Connect_Strategy/Test_i.h
@@ -19,10 +19,10 @@ public:
Hello (CORBA::ORB_ptr orb);
// = The skeleton methods
- virtual char * get_string (ACE_ENV_SINGLE_ARG_DECL)
+ virtual char * get_string (void)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ virtual void shutdown (void)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
diff --git a/TAO/tests/Parallel_Connect_Strategy/client.cpp b/TAO/tests/Parallel_Connect_Strategy/client.cpp
index ee7747bb1ca..b4855e16b19 100644
--- a/TAO/tests/Parallel_Connect_Strategy/client.cpp
+++ b/TAO/tests/Parallel_Connect_Strategy/client.cpp
@@ -45,14 +45,12 @@ main (int argc, char *argv[])
{
CORBA::ORB_var orb =
CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
if (parse_args (argc, argv) != 0)
return 1;
CORBA::Object_var tmp =
orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
ACE_High_Res_Timer hrt;
ACE_hrtime_t elapsed;
@@ -62,7 +60,6 @@ main (int argc, char *argv[])
Test::Hello_var hello =
Test::Hello::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
hrt.stop();
hrt.elapsed_microseconds (elapsed);
hrt.reset();
@@ -80,16 +77,14 @@ main (int argc, char *argv[])
}
if (kill_server)
{
- hello->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ hello->shutdown ();
}
else
{
ACE_DEBUG ((LM_DEBUG,"Starting invocation 1 - "));
hrt.start();
CORBA::String_var the_string =
- hello->get_string (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ hello->get_string ();
hrt.stop();
hrt.elapsed_microseconds (elapsed);
ACE_DEBUG ((LM_DEBUG,
@@ -98,16 +93,14 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG,"Starting invocation 2 - "));
hrt.reset();
hrt.start();
- the_string = hello->get_string (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ the_string = hello->get_string ();
hrt.stop();
hrt.elapsed_microseconds (elapsed);
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("call completed in %d usec\n"),
elapsed ));
}
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ orb->destroy ();
}
ACE_CATCHANY
{
diff --git a/TAO/tests/Parallel_Connect_Strategy/server.cpp b/TAO/tests/Parallel_Connect_Strategy/server.cpp
index 153aba883ff..9a63c03d52d 100644
--- a/TAO/tests/Parallel_Connect_Strategy/server.cpp
+++ b/TAO/tests/Parallel_Connect_Strategy/server.cpp
@@ -44,15 +44,12 @@ main (int argc, char *argv[])
{
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;
PortableServer::POA_var root_poa =
PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
if (CORBA::is_nil (root_poa.in ()))
ACE_ERROR_RETURN ((LM_ERROR,
@@ -60,8 +57,7 @@ main (int argc, char *argv[])
1);
PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ root_poa->the_POAManager ();
if (parse_args (argc, argv) != 0)
return 1;
@@ -73,13 +69,11 @@ main (int argc, char *argv[])
PortableServer::ServantBase_var owner_transfer(hello_impl);
Test::Hello_var hello =
- hello_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ hello_impl->_this ();
CORBA::String_var ior =
orb->object_to_string (hello.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
@@ -94,11 +88,9 @@ main (int argc, char *argv[])
CORBA::Object_var table_object =
orb->resolve_initial_references ("IORTable"
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
IORTable::Table_var adapter =
IORTable::Table::_narrow (table_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
if (CORBA::is_nil (adapter.in ()))
{
@@ -107,22 +99,17 @@ main (int argc, char *argv[])
else
{
adapter->bind ("pcs_test", ior.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
}
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ poa_manager->activate ();
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ orb->run ();
ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ orb->destroy ();
}
ACE_CATCHANY
{