From 056e382d4f731568dfe78dc66f08e348e926febb Mon Sep 17 00:00:00 2001 From: levine Date: Fri, 11 Jun 1999 18:06:46 +0000 Subject: (main): return error status from run_event_loop () call. And, added a few ACE_ERROR printouts. --- tests/Reactor_Performance_Test.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'tests') 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) -- cgit v1.2.1