diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-04-19 05:25:34 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-04-19 05:25:34 +0000 |
commit | be40c13f87a6b880c9a6b34cfdda32ac896b7a01 (patch) | |
tree | 7516aef31f825acd96e915011ebd9eb6da13c187 /TAO/tests/Bug_1476_Test/client.cpp | |
parent | 5d2146e128c7a2e89598e375587e71776390ab7c (diff) | |
download | ATCD-be40c13f87a6b880c9a6b34cfdda32ac896b7a01.tar.gz |
Thu Apr 19 05:24:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tests/Bug_1476_Test/client.cpp')
-rw-r--r-- | TAO/tests/Bug_1476_Test/client.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/TAO/tests/Bug_1476_Test/client.cpp b/TAO/tests/Bug_1476_Test/client.cpp index 19f5115824d..8a6b4b15973 100644 --- a/TAO/tests/Bug_1476_Test/client.cpp +++ b/TAO/tests/Bug_1476_Test/client.cpp @@ -97,7 +97,7 @@ main (int argc, char *argv[]) CORBA::Object_var tmp = orb->string_to_object(ior); if (CORBA::is_nil (tmp.in ())) { - ACE_ERROR_RETURN ((LM_ERROR, "Invalid IOR.\n") + ACE_ERROR_RETURN ((LM_ERROR, "Invalid IOR.\n") ,1); } @@ -152,14 +152,14 @@ main (int argc, char *argv[]) tmp = tmp->_set_policy_overrides (policies, CORBA::SET_OVERRIDE); } - policies[0]->destroy (); + policies[0]->destroy (); } Test::Hello_var hello = Test::Hello::_narrow(tmp.in ()); if (CORBA::is_nil (hello.in ())) { - ACE_ERROR_RETURN ((LM_ERROR, + ACE_ERROR_RETURN ((LM_ERROR, "Nil Test::Hello reference <%s>\n", ior), 1); @@ -172,31 +172,31 @@ main (int argc, char *argv[]) hello->get_string (); TAO::Transport_Cache_Manager &tcm = - hello->orb_core ()->lane_resources ().transport_cache (); + hello->orb_core ()->lane_resources ().transport_cache (); - TAO_Transport *transport = NULL; + TAO_Transport *transport = 0; TAO_Base_Transport_Property desc (hello->_stubobj ()->profile_in_use()->endpoint ()); if (tcm.current_size() == 0) { - ACE_ERROR_RETURN ((LM_ERROR, + ACE_ERROR_RETURN ((LM_ERROR, "The Transport Cache shouldn't be empty here.\n"), 1); } if (tcm.find_transport (&desc, transport) != 0) { - ACE_ERROR_RETURN ((LM_ERROR, + ACE_ERROR_RETURN ((LM_ERROR, "The cache should have returned the just created transport.\n"), 1); } if (transport->is_connected()) { - ACE_ERROR_RETURN ((LM_ERROR, + ACE_ERROR_RETURN ((LM_ERROR, "This cannot happen. No server to connect to."), 1); } - if (transport != NULL) { - ACE_DEBUG ((LM_DEBUG, "Transport is %s\n", (transport->is_connected()?"connected":"not connected"))); + if (transport != 0) { + ACE_DEBUG ((LM_DEBUG, "Transport is %s\n", (transport->is_connected()?"connected":"not connected"))); } orb->destroy (); |