diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2008-06-16 00:55:02 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2008-06-16 00:55:02 +0000 |
commit | f0fbaafa34daea5f30b8a6708038499b4fef3197 (patch) | |
tree | 2d88dd1435fe862e009b80bfbf022273eba55f8d /TAO/tests/objref_comparison_test | |
parent | b0291c31ba6b0a94e5ff531aa9a9a9998fd35fae (diff) | |
download | ATCD-f0fbaafa34daea5f30b8a6708038499b4fef3197.tar.gz |
Mon Jun 16 00:51:02 UTC 2008 Abdullah Sowayan <abdullah.sowayan@lmco.com>
Diffstat (limited to 'TAO/tests/objref_comparison_test')
-rw-r--r-- | TAO/tests/objref_comparison_test/main.cpp | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/TAO/tests/objref_comparison_test/main.cpp b/TAO/tests/objref_comparison_test/main.cpp index cd5d91e2de0..54b1d15a379 100644 --- a/TAO/tests/objref_comparison_test/main.cpp +++ b/TAO/tests/objref_comparison_test/main.cpp @@ -78,7 +78,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) CORBA::Object_var o = s_orb->resolve_initial_references ("RootPOA"); PortableServer::POA_var rootpoa = PortableServer::POA::_narrow (o.in()); if (CORBA::is_nil (rootpoa.in())) - ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t): failed to get root poa\n"), 1); + ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t): failed to get root poa\n"), 1); PortableServer::POAManager_var poamgr = rootpoa->the_POAManager(); @@ -102,29 +102,28 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) server.activate(1); // activate one thread running the task foo_var f = foo::_narrow (o.in()); // ignore the possibility that - // it's not a 'foo' since we - // created it above + // it's not a 'foo' since we + // created it above int const iterations = 10; ACE_DEBUG ((LM_DEBUG, "(%P|%t) client: next %d iterations should match\n", - iterations)); + iterations)); for (int i = 0; i < iterations; ++i) - { - CORBA::Boolean b = f->match_references (); - ACE_DEBUG ((LM_DEBUG, "(%P|%t) client: iteration %d, match = %d\n", - i, b)); - } + { + CORBA::Boolean b = f->match_references (); + ACE_DEBUG ((LM_DEBUG, "(%P|%t) client: iteration %d, match = %d\n", + i, b)); + } ACE_DEBUG ((LM_DEBUG, - "(%P|%t) client: next %d iterations should NOT match\n", - iterations)); + "(%P|%t) client: next %d iterations should NOT match\n", + iterations)); for (int i = 0; i < iterations; ++i) - { - CORBA::Boolean b = f2->match_references (); - ACE_DEBUG ((LM_DEBUG, "(%P|%t) client: iteration %d, match = %d\n", - i, b)); - } - + { + CORBA::Boolean b = f2->match_references (); + ACE_DEBUG ((LM_DEBUG, "(%P|%t) client: iteration %d, match = %d\n", + i, b)); + } } catch (...) { |