summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-11 18:06:46 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-11 18:06:46 +0000
commit056e382d4f731568dfe78dc66f08e348e926febb (patch)
tree63b774d45a12b046f74c82ce0231b5ddc529ebd6 /tests
parent41b1607dd2335ed6ef26933473900652546c87ca (diff)
downloadATCD-056e382d4f731568dfe78dc66f08e348e926febb.tar.gz
(main): return error status from run_event_loop () call. And, added a
few ACE_ERROR printouts.
Diffstat (limited to 'tests')
-rw-r--r--tests/Reactor_Performance_Test.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/Reactor_Performance_Test.cpp b/tests/Reactor_Performance_Test.cpp
index 5b66c4ba70c..3e4023b6700 100644
--- a/tests/Reactor_Performance_Test.cpp
+++ b/tests/Reactor_Performance_Test.cpp
@@ -110,11 +110,18 @@ Read_Handler::handle_input (ACE_HANDLE handle)
if (errno == EWOULDBLOCK)
return 0;
else
- // This will cause handle_close to get called.
- return -1;
+ {
+ ACE_ERROR ((LM_ERROR, "handle_input: %p (%d)", "recv\n", errno));
+
+ // This will cause handle_close to get called.
+ return -1;
+ }
}
else // result == 0
{
+ ACE_ERROR ((LM_ERROR, "handle_input, results is 0: %p (%d)\n",
+ "recv", errno));
+
// This will cause handle_close to get called.
return -1;
}
@@ -379,11 +386,11 @@ main (int argc, ASYS_TCHAR *argv[])
ASYS_TEXT ("(%t) %p\n"),
ASYS_TEXT ("thread create failed")));
- ACE_Time_Value run_limit (10);
+ ACE_Time_Value run_limit (opt_nloops / 10);
ACE_Profile_Timer timer;
timer.start ();
- ACE_Reactor::instance()->run_event_loop (run_limit);
+ const int status = ACE_Reactor::instance()->run_event_loop (run_limit);
timer.stop ();
ACE_Profile_Timer::ACE_Elapsed_Time et;
@@ -398,7 +405,7 @@ main (int argc, ASYS_TCHAR *argv[])
ACE_Thread_Manager::instance ()->wait ();
ACE_END_TEST;
- return 0;
+ return status;
}
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)