summaryrefslogtreecommitdiff
path: root/TAO/tests/AMI_Timeouts
diff options
context:
space:
mode:
authormk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-06 21:07:41 +0000
committermk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-06 21:07:41 +0000
commit651d10afe6791ec58ca02c6425d1280cb5227b0c (patch)
tree6b2ddbe9c1c6035d43a2fdc2b01d49cf27d909b4 /TAO/tests/AMI_Timeouts
parentab1d8c89f6b7b9c3b78c1e500d45fb4c201dc29c (diff)
downloadATCD-651d10afe6791ec58ca02c6425d1280cb5227b0c.tar.gz
ChangeLogTag: Tue Mar 6 13:06:00 2001 Michael Kircher <Michael.Kircher@mchp.siemens.de>
Diffstat (limited to 'TAO/tests/AMI_Timeouts')
-rw-r--r--TAO/tests/AMI_Timeouts/client.cpp1
-rw-r--r--TAO/tests/AMI_Timeouts/server.cpp1
-rw-r--r--TAO/tests/AMI_Timeouts/timeout_client.cpp17
-rw-r--r--TAO/tests/AMI_Timeouts/timeout_i.cpp12
4 files changed, 12 insertions, 19 deletions
diff --git a/TAO/tests/AMI_Timeouts/client.cpp b/TAO/tests/AMI_Timeouts/client.cpp
index 42a13159b78..fdc7b2c94df 100644
--- a/TAO/tests/AMI_Timeouts/client.cpp
+++ b/TAO/tests/AMI_Timeouts/client.cpp
@@ -141,7 +141,6 @@ main (int argc, char *argv[])
return 1;
}
ACE_ENDTRY;
- ACE_CHECK_RETURN (-1);
return 0;
}
diff --git a/TAO/tests/AMI_Timeouts/server.cpp b/TAO/tests/AMI_Timeouts/server.cpp
index 7132332a666..78cc53d169c 100644
--- a/TAO/tests/AMI_Timeouts/server.cpp
+++ b/TAO/tests/AMI_Timeouts/server.cpp
@@ -142,7 +142,6 @@ main (int argc, char *argv[])
return 1;
}
ACE_ENDTRY;
- ACE_CHECK_RETURN (-1);
return 0;
}
diff --git a/TAO/tests/AMI_Timeouts/timeout_client.cpp b/TAO/tests/AMI_Timeouts/timeout_client.cpp
index b8b25d6ea3d..cbe285d378a 100644
--- a/TAO/tests/AMI_Timeouts/timeout_client.cpp
+++ b/TAO/tests/AMI_Timeouts/timeout_client.cpp
@@ -76,7 +76,6 @@ TimeoutClient::svc ()
return 1;
}
ACE_ENDTRY;
- ACE_CHECK_RETURN (-1);
ACE_DEBUG ((LM_DEBUG,
"TimeoutClient::svc: Done\n\n"));
@@ -105,7 +104,6 @@ TimeoutClient::initialize ()
return 1;
}
ACE_ENDTRY;
- ACE_CHECK_RETURN (-1);
return 0;
}
@@ -186,7 +184,7 @@ TimeoutClient::send (bool async,
// Trap this exception and continue...
ACE_DEBUG ((LM_DEBUG,
- "\n==> Trapped a TIMEOUT exception (expected)\n"));
+ " timeout "));
}
ACE_ENDTRY;
@@ -204,7 +202,7 @@ TimeoutClient::send (bool async,
ACE_CATCHANY
{
ACE_DEBUG ((LM_DEBUG,
- "Unexpected exception\n\n"));
+ "Error: Unexpected exception\n\n"));
}
ACE_ENDTRY;
ACE_CHECK;
@@ -241,10 +239,7 @@ TimeoutClient::synch_test ()
this->send (INVOKE_SYNCH,
timeToWait_, // local
timeToWait_*2); // remote
- // @@ Michael: In the collocated, but using the loopback interface, and
- // if the reply to this request times out the replies to the
- // asynch invocations do not get dispatched
- // to the reply handler. Why?
+
this->send (INVOKE_SYNCH,
0, // local
0); // remote
@@ -253,7 +248,7 @@ TimeoutClient::synch_test ()
|| timeoutHandler_i_->reply_excep_counter () != 0
|| local_reply_excep_counter_ != 1)
ACE_DEBUG ((LM_DEBUG,
- "**** Failure in replies %d %d %d.\n\n",
+ "**** Error in replies %d %d %d.\n\n",
timeoutHandler_i_->reply_counter (),
timeoutHandler_i_->reply_excep_counter (),
local_reply_excep_counter_));
@@ -286,7 +281,7 @@ TimeoutClient::accuracy_test ()
|| timeoutHandler_i_->reply_excep_counter () != 1
|| local_reply_excep_counter_ != 0)
ACE_DEBUG ((LM_DEBUG,
- "**** Failure in replies %d %d %d.\n\n",
+ "**** Error in replies %d %d %d.\n\n",
timeoutHandler_i_->reply_counter (),
timeoutHandler_i_->reply_excep_counter (),
local_reply_excep_counter_));
@@ -323,7 +318,7 @@ TimeoutClient::none_test ()
|| timeoutHandler_i_->reply_excep_counter () != 1
|| local_reply_excep_counter_ != 0)
ACE_DEBUG ((LM_DEBUG,
- "**** Failure in replies %d %d %d.\n\n",
+ "**** Error in replies %d %d %d.\n\n",
timeoutHandler_i_->reply_counter (),
timeoutHandler_i_->reply_excep_counter (),
local_reply_excep_counter_));
diff --git a/TAO/tests/AMI_Timeouts/timeout_i.cpp b/TAO/tests/AMI_Timeouts/timeout_i.cpp
index 77b6c195cd7..6df0030bac1 100644
--- a/TAO/tests/AMI_Timeouts/timeout_i.cpp
+++ b/TAO/tests/AMI_Timeouts/timeout_i.cpp
@@ -39,8 +39,8 @@ Timeout_i::sendTimeToWait (CORBA::Long msec,
if (msec != 0)
{
- ACE_DEBUG ((LM_DEBUG,
- "Timeout_i::sendTimeToWait: sleeping\n\n"));
+ // ACE_DEBUG ((LM_DEBUG,
+ // "Timeout_i::sendTimeToWait: sleeping\n\n"));
ACE_Time_Value tv (0, msec * 1000);
ACE_OS::sleep (tv);
@@ -52,8 +52,8 @@ Timeout_i::shutdown (CORBA::Environment &)
ACE_THROW_SPEC ((CORBA::SystemException))
{
orb_->shutdown (false);
- ACE_DEBUG ((LM_DEBUG,
- "Timeout_i::shutdown: shut down ORB\n\n"));
+ //ACE_DEBUG ((LM_DEBUG,
+ // "Timeout_i::shutdown: shut down ORB\n\n"));
}
// Reply Handler implementation
@@ -86,8 +86,8 @@ TimeoutHandler_i::sendTimeToWait_excep (AMI_TimeoutExceptionHolder *,
CORBA::Environment &)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_DEBUG ((LM_DEBUG,
- "excep"));
+ //ACE_DEBUG ((LM_DEBUG,
+ // "excep"));
reply_excep_counter_++;
timer_.stop ();
}