summaryrefslogtreecommitdiff
path: root/tests/Reactor_Performance_Test.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-16 18:17:52 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-16 18:17:52 +0000
commitb507b0691a35ea9b7192e65ea0e435847ce4fd1d (patch)
tree09ed4da2c283288cb50b892d6b428fe74cce5b5f /tests/Reactor_Performance_Test.cpp
parentb2e62a6ef510b4560a3b9f0d69de1f3df4da4d3e (diff)
downloadATCD-ami_phase2_end.tar.gz
This commit was manufactured by cvs2svn to create tagami_phase2_end
'ami_phase2_end'.
Diffstat (limited to 'tests/Reactor_Performance_Test.cpp')
-rw-r--r--tests/Reactor_Performance_Test.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/Reactor_Performance_Test.cpp b/tests/Reactor_Performance_Test.cpp
index bff9127cca0..5b66c4ba70c 100644
--- a/tests/Reactor_Performance_Test.cpp
+++ b/tests/Reactor_Performance_Test.cpp
@@ -110,13 +110,8 @@ Read_Handler::handle_input (ACE_HANDLE handle)
if (errno == EWOULDBLOCK)
return 0;
else
- {
- ACE_ERROR ((LM_ERROR, "handle_input: %p (errno: %d)\n",
- "recv", errno));
-
- // This will cause handle_close to get called.
- return -1;
- }
+ // This will cause handle_close to get called.
+ return -1;
}
else // result == 0
{
@@ -384,11 +379,11 @@ main (int argc, ASYS_TCHAR *argv[])
ASYS_TEXT ("(%t) %p\n"),
ASYS_TEXT ("thread create failed")));
- ACE_Time_Value run_limit (opt_nloops / 10);
+ ACE_Time_Value run_limit (10);
ACE_Profile_Timer timer;
timer.start ();
- const int status = ACE_Reactor::instance()->run_event_loop (run_limit);
+ ACE_Reactor::instance()->run_event_loop (run_limit);
timer.stop ();
ACE_Profile_Timer::ACE_Elapsed_Time et;
@@ -403,7 +398,7 @@ main (int argc, ASYS_TCHAR *argv[])
ACE_Thread_Manager::instance ()->wait ();
ACE_END_TEST;
- return status;
+ return 0;
}
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)