summaryrefslogtreecommitdiff
path: root/TAO/tests/Connection_Purging
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2001-12-08 21:59:30 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2001-12-08 21:59:30 +0000
commit63165b00e2d667e39e15cf084128d94a563d484e (patch)
tree6939cf1ed0a80ce8a3224d33f3d23c0e1b9a517f /TAO/tests/Connection_Purging
parent6579bccb3a3f22f882ef908ad5f7e1a65b00b133 (diff)
downloadATCD-63165b00e2d667e39e15cf084128d94a563d484e.tar.gz
Merged corba-env-clean branch.
Diffstat (limited to 'TAO/tests/Connection_Purging')
-rw-r--r--TAO/tests/Connection_Purging/client.cpp16
-rw-r--r--TAO/tests/Connection_Purging/server.cpp20
-rw-r--r--TAO/tests/Connection_Purging/test_i.cpp4
-rw-r--r--TAO/tests/Connection_Purging/test_i.h4
4 files changed, 22 insertions, 22 deletions
diff --git a/TAO/tests/Connection_Purging/client.cpp b/TAO/tests/Connection_Purging/client.cpp
index 81bfb90f63e..b253b9f4dbc 100644
--- a/TAO/tests/Connection_Purging/client.cpp
+++ b/TAO/tests/Connection_Purging/client.cpp
@@ -38,7 +38,7 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "", ACE_TRY_ENV);
+ CORBA::ORB_init (argc, argv, "" TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (parse_args (argc, argv) != 0)
@@ -58,11 +58,11 @@ main (int argc, char *argv[])
{
iorfile = "file://" + iorfile;
CORBA::Object_var tmp =
- orb->string_to_object(iorfile.c_str (), ACE_TRY_ENV);
+ orb->string_to_object(iorfile.c_str () TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
test_var test =
- test::_narrow(tmp.in (), ACE_TRY_ENV);
+ test::_narrow(tmp.in () TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (CORBA::is_nil (test.in ()))
@@ -73,14 +73,14 @@ main (int argc, char *argv[])
1);
}
- test->send_stuff ("Some stuff to send", ACE_TRY_ENV);
+ test->send_stuff ("Some stuff to send" TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK
// Test for LFU strategy. The transport to any other
// server should be removed before the first one.
if (i == 0)
{
- test->send_stuff ("Some stuff to send", ACE_TRY_ENV);
+ test->send_stuff ("Some stuff to send" TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK
holder = test;
@@ -91,7 +91,7 @@ main (int argc, char *argv[])
// removed.
if (!CORBA::is_nil(holder.in ()))
{
- holder->send_stuff ("Some stuff to send", ACE_TRY_ENV);
+ holder->send_stuff ("Some stuff to send" TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK
}
}
@@ -102,10 +102,10 @@ main (int argc, char *argv[])
}
}
- orb->shutdown (1, ACE_TRY_ENV);
+ orb->shutdown (1 TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- orb->destroy (ACE_TRY_ENV);
+ orb->destroy (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/tests/Connection_Purging/server.cpp b/TAO/tests/Connection_Purging/server.cpp
index 9b66cb607e1..d8972b2362a 100644
--- a/TAO/tests/Connection_Purging/server.cpp
+++ b/TAO/tests/Connection_Purging/server.cpp
@@ -38,15 +38,15 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "", ACE_TRY_ENV);
+ CORBA::ORB_init (argc, argv, "" TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA", ACE_TRY_ENV);
+ orb->resolve_initial_references("RootPOA" TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in (), ACE_TRY_ENV);
+ PortableServer::POA::_narrow (poa_object.in () TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (CORBA::is_nil (root_poa.in ()))
@@ -55,7 +55,7 @@ main (int argc, char *argv[])
1);
PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_TRY_ENV);
+ root_poa->the_POAManager (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
if (parse_args (argc, argv) != 0)
@@ -68,11 +68,11 @@ main (int argc, char *argv[])
PortableServer::ServantBase_var owner_transfer(test_impl);
test_var test =
- test_impl->_this (ACE_TRY_ENV);
+ test_impl->_this (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::String_var ior =
- orb->object_to_string (test.in (), ACE_TRY_ENV);
+ orb->object_to_string (test.in () TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
@@ -85,19 +85,19 @@ main (int argc, char *argv[])
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);
- poa_manager->activate (ACE_TRY_ENV);
+ poa_manager->activate (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- orb->run (ACE_TRY_ENV);
+ orb->run (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
delete test_impl;
- root_poa->destroy (1, 1, ACE_TRY_ENV);
+ root_poa->destroy (1, 1 TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- orb->destroy (ACE_TRY_ENV);
+ orb->destroy (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/tests/Connection_Purging/test_i.cpp b/TAO/tests/Connection_Purging/test_i.cpp
index ad27e9ee1b1..9f69f9e1ec0 100644
--- a/TAO/tests/Connection_Purging/test_i.cpp
+++ b/TAO/tests/Connection_Purging/test_i.cpp
@@ -4,8 +4,8 @@
#include "test_i.h"
void
-test_i::send_stuff (const char* string,
- CORBA::Environment &)
+test_i::send_stuff (const char* string
+ TAO_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_DEBUG ((LM_DEBUG, "TAO (%P|%t) - %s\n", string));
diff --git a/TAO/tests/Connection_Purging/test_i.h b/TAO/tests/Connection_Purging/test_i.h
index 40c180558ac..b862bd1e806 100644
--- a/TAO/tests/Connection_Purging/test_i.h
+++ b/TAO/tests/Connection_Purging/test_i.h
@@ -22,8 +22,8 @@ class test_i
{
public:
// = The skeleton methods
- virtual void send_stuff (const char* string,
- CORBA::Environment &ACE_TRY_ENV)
+ virtual void send_stuff (const char* string
+ TAO_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
private: