summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2134_Regression/Hello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_2134_Regression/Hello.cpp')
-rw-r--r--TAO/tests/Bug_2134_Regression/Hello.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/TAO/tests/Bug_2134_Regression/Hello.cpp b/TAO/tests/Bug_2134_Regression/Hello.cpp
index e5979299664..a86453e161e 100644
--- a/TAO/tests/Bug_2134_Regression/Hello.cpp
+++ b/TAO/tests/Bug_2134_Regression/Hello.cpp
@@ -29,45 +29,34 @@ int main(int argc, char* argv[])
// Initialize the ORB
orb =
CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// create Hello object
Test::Hello_impl hello_i;
- ACE_TRY_CHECK;
Test::Hello_var hello = hello_i._this ();
- ACE_TRY_CHECK;
// give our object a friendly name
CORBA::Object_var iorTableObj =
orb->resolve_initial_references ("IORTable");
- ACE_TRY_CHECK;
IORTable::Table_var iorTable
= IORTable::Table::_narrow (iorTableObj.in ());
- ACE_TRY_CHECK;
CORBA::String_var ior_string = orb->object_to_string (hello.in ());
- ACE_TRY_CHECK;
iorTable->bind("hello", ior_string.in ());
- ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG, "Created binding of name 'hello' in IOR table for IOR:\n%s\n", ior_string.in ()));
// Get the root POA
CORBA::Object_var obj_root = orb->resolve_initial_references ("RootPOA");
- ACE_TRY_CHECK;
PortableServer::POA_var rootPOA = PortableServer::POA::_narrow (obj_root.in ());
- ACE_TRY_CHECK;
// Activate the POA manager
PortableServer::POAManager_var poaManager = rootPOA->the_POAManager ();
- ACE_TRY_CHECK;
poaManager->activate ();
- ACE_TRY_CHECK;
// try and access the object with its friendly name
ACE_CString full_corbaloc (ior_string.in (), 0, 1);
@@ -83,7 +72,6 @@ int main(int argc, char* argv[])
ACE_DEBUG ((LM_DEBUG, "Trying to access object with object ref:\n%s\n", friendly_corbaloc.c_str ()));
CORBA::Object_var obj = orb->string_to_object (friendly_corbaloc.c_str ());
- ACE_TRY_CHECK;
TimeBase::TimeT timeout = 10000000;
@@ -104,7 +92,6 @@ int main(int argc, char* argv[])
policy_list[0]->destroy();
Test::Hello_var hello2 = Test::Hello::_narrow (rtt_obj.in ());
- ACE_TRY_CHECK;
if (CORBA::is_nil (hello2.in ()))
{
@@ -116,13 +103,11 @@ int main(int argc, char* argv[])
else
{
hello2->say_hello ();
- ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG, "Test succeeded !!!\n"));
}
orb->destroy();
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{