summaryrefslogtreecommitdiff
path: root/tests/Reactor_Performance_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-21 21:43:22 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-21 21:43:22 +0000
commitcc0990e52d509bb1747944c838aa4254b67cb5dd (patch)
tree09f8a8b5653c774e9e56720349738c109305354b /tests/Reactor_Performance_Test.cpp
parent0120f2a2f45fb39ab218f67fbb25034a2197b519 (diff)
downloadATCD-cc0990e52d509bb1747944c838aa4254b67cb5dd.tar.gz
(main): added 10 second time limit to run_event_loop () call. That
prevents the test from hanging forever if some of the connections are lost.
Diffstat (limited to 'tests/Reactor_Performance_Test.cpp')
-rw-r--r--tests/Reactor_Performance_Test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Reactor_Performance_Test.cpp b/tests/Reactor_Performance_Test.cpp
index 8a3f42a9d38..5b66c4ba70c 100644
--- a/tests/Reactor_Performance_Test.cpp
+++ b/tests/Reactor_Performance_Test.cpp
@@ -379,9 +379,11 @@ main (int argc, ASYS_TCHAR *argv[])
ASYS_TEXT ("(%t) %p\n"),
ASYS_TEXT ("thread create failed")));
+ ACE_Time_Value run_limit (10);
+
ACE_Profile_Timer timer;
timer.start ();
- ACE_Reactor::instance()->run_event_loop ();
+ ACE_Reactor::instance()->run_event_loop (run_limit);
timer.stop ();
ACE_Profile_Timer::ACE_Elapsed_Time et;