diff options
author | Phil Mesnier <mesnier_p@ociweb.com> | 2006-08-18 16:22:34 +0000 |
---|---|---|
committer | Phil Mesnier <mesnier_p@ociweb.com> | 2006-08-18 16:22:34 +0000 |
commit | eeaab2db5ea54a69c46e1e73122e2e0fda02ff95 (patch) | |
tree | 4cbfc188bad3759eefc5e830f2669c56fadaddfb /TAO/tests/Timed_Buffered_Oneways | |
parent | 0c7e5f0b88cc21a637619bbc4e9cd08003b090a6 (diff) | |
download | ATCD-eeaab2db5ea54a69c46e1e73122e2e0fda02ff95.tar.gz |
ChangeLog tag: Fri Aug 18 16:18:35 UTC 2006 Phil Mesnier <mesnier_p@ociweb.com>
Diffstat (limited to 'TAO/tests/Timed_Buffered_Oneways')
-rw-r--r-- | TAO/tests/Timed_Buffered_Oneways/client.cpp | 9 | ||||
-rw-r--r-- | TAO/tests/Timed_Buffered_Oneways/test_i.cpp | 1 |
2 files changed, 7 insertions, 3 deletions
diff --git a/TAO/tests/Timed_Buffered_Oneways/client.cpp b/TAO/tests/Timed_Buffered_Oneways/client.cpp index f02f614e9a6..1773da31417 100644 --- a/TAO/tests/Timed_Buffered_Oneways/client.cpp +++ b/TAO/tests/Timed_Buffered_Oneways/client.cpp @@ -131,7 +131,8 @@ setup_policies (CORBA::ORB_ptr orb, test_ptr object ACE_ENV_ARG_DECL) else { policy_list.length (1); - TimeBase::TimeT rt_timeout = 10000 * timeout; + TimeBase::TimeT rt_timeout = 10 * 1000 * timeout; + CORBA::Any rt_timeout_any; rt_timeout_any <<= rt_timeout; policy_list[0] = @@ -167,7 +168,7 @@ setup_policies (CORBA::ORB_ptr orb, test_ptr object ACE_ENV_ARG_DECL) ACE_ENV_ARG_PARAMETER); ACE_CHECK; - CORBA::Object_var object_temp = + CORBA::Object_var object_temp = object_with_policy->_set_policy_overrides (policy_list, CORBA::ADD_OVERRIDE ACE_ENV_ARG_PARAMETER); @@ -244,17 +245,19 @@ main (int argc, char **argv) ACE_Time_Value sleep_interval (0, interval * 1000); // If we don't run the orb, then no data will be sent, and no - // connection will be made initially. + // connection will be made initially. orb->run (sleep_interval ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; } + ACE_DEBUG ((LM_DEBUG, "client: flushing\n")); test_object_no_policy->flush (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; ACE_DEBUG ((LM_DEBUG, "client: Shutting down...\n")); if (shutdown_server) { + ACE_DEBUG ((LM_DEBUG,"client killing server\n")); long now = ACE_OS::gettimeofday ().msec (); test_object_no_policy->shutdown (now ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; diff --git a/TAO/tests/Timed_Buffered_Oneways/test_i.cpp b/TAO/tests/Timed_Buffered_Oneways/test_i.cpp index 54c6c393c88..b29d2773ea3 100644 --- a/TAO/tests/Timed_Buffered_Oneways/test_i.cpp +++ b/TAO/tests/Timed_Buffered_Oneways/test_i.cpp @@ -38,6 +38,7 @@ void test_i::flush (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) ACE_THROW_SPEC ((CORBA::SystemException)) { + ACE_DEBUG ((LM_DEBUG, "server: got flush request\n")); } void |