diff options
author | huangming <huangminghuang@users.noreply.github.com> | 2003-12-01 17:48:22 +0000 |
---|---|---|
committer | huangming <huangminghuang@users.noreply.github.com> | 2003-12-01 17:48:22 +0000 |
commit | 7f0db50760ef8431a3c306e5bdd4ed9030c37600 (patch) | |
tree | 323b2b2973f35cef0c7b7a4fc4a929e9c3853fc3 | |
parent | 8048317cb9e9b6f13a56ba53e9ad1c2f9063a3da (diff) | |
download | ATCD-7f0db50760ef8431a3c306e5bdd4ed9030c37600.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/orbsvcs/tests/FtRtEvent/FtRtEvent_Test.cpp | 3 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/FtRtEvent/PushConsumer.cpp | 9 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/FtRtEvent/svc.conf | 3 |
3 files changed, 7 insertions, 8 deletions
diff --git a/TAO/orbsvcs/tests/FtRtEvent/FtRtEvent_Test.cpp b/TAO/orbsvcs/tests/FtRtEvent/FtRtEvent_Test.cpp index 8974c3c9bf6..c5561fca804 100644 --- a/TAO/orbsvcs/tests/FtRtEvent/FtRtEvent_Test.cpp +++ b/TAO/orbsvcs/tests/FtRtEvent/FtRtEvent_Test.cpp @@ -23,7 +23,7 @@ FtRtEvent_Test_Base::FtRtEvent_Test_Base() : gateway_(0) , use_gateway_(1) { - options_.num_events = -1; + options_.num_events = INT_MAX; options_.num_iterations=100; options_.timer_interval.set(1,0); options_.proxy_consumer_file="consumer.ior"; @@ -86,6 +86,7 @@ FtRtEvent_Test_Base::parse_args(int argc, ACE_TCHAR** argv ACE_ENV_ARG_DECL) return -1; } } + ACE_DEBUG((LM_DEBUG, "After Parse args\n")); return 0; } diff --git a/TAO/orbsvcs/tests/FtRtEvent/PushConsumer.cpp b/TAO/orbsvcs/tests/FtRtEvent/PushConsumer.cpp index c59b146853a..1e387372ad9 100644 --- a/TAO/orbsvcs/tests/FtRtEvent/PushConsumer.cpp +++ b/TAO/orbsvcs/tests/FtRtEvent/PushConsumer.cpp @@ -79,10 +79,7 @@ PushConsumer_impl::push (const RtecEventComm::EventSet & event num_events_recevied_ ++; - ACE_DEBUG((LM_DEBUG, " num_events_recevied_ = %d, num_events_to_end_ = %d\n" - , num_events_recevied_, num_events_to_end_)); - - if ( num_iterations_ > static_cast<int>(x) && + if ( num_iterations_ > static_cast<int>(x) && num_events_recevied_ < num_events_to_end_ ) { run_times_[x] = static_cast<int>(elaps/10); TAO_FTRTEC::Log(3, "received event %d\n", x); @@ -126,8 +123,8 @@ PushConsumer_impl::disconnect_push_consumer (ACE_ENV_SINGLE_ARG_DECL) void PushConsumer_impl::output_result() { - int lost = 0; - for (int i =0; i < run_times_.size(); ++i) + size_t lost = 0; + for (size_t i =0; i < run_times_.size(); ++i) if (run_times_[i] == -1) lost++; else ACE_DEBUG((LM_DEBUG, "%5d received, elapsed time = %d\n",i, run_times_[i])); diff --git a/TAO/orbsvcs/tests/FtRtEvent/svc.conf b/TAO/orbsvcs/tests/FtRtEvent/svc.conf index d3de0dfe790..539a8fe48c6 100644 --- a/TAO/orbsvcs/tests/FtRtEvent/svc.conf +++ b/TAO/orbsvcs/tests/FtRtEvent/svc.conf @@ -1,4 +1,5 @@ ## $Id$ +static Client_Strategy_Factory "-ORBClientConnectionHandler RW" static FT_ClientService_Activate -static FTRT_ClientORB_Service "-ORBTransactionDepth $FTEC_TransactionDepth"
\ No newline at end of file +static FTRT_ClientORB_Service "-ORBTransactionDepth $FTEC_TransactionDepth" |