diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-18 17:40:54 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-18 17:40:54 +0000 |
commit | 322e1a9c7a666ae2f11b7c0136942530d21b0d79 (patch) | |
tree | 76d5fa3c2eddde533d6374230149efc87d67b5ef /tests/Reactor_Notify_Test.cpp | |
parent | bc56c242f7e01ab5bf16ea8bd33481b0dd311630 (diff) | |
download | ATCD-322e1a9c7a666ae2f11b7c0136942530d21b0d79.tar.gz |
added shutdown flag so that normal termination can flow through ACE_END_TEST
Diffstat (limited to 'tests/Reactor_Notify_Test.cpp')
-rw-r--r-- | tests/Reactor_Notify_Test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/Reactor_Notify_Test.cpp b/tests/Reactor_Notify_Test.cpp index 6f912b39868..9519015ca38 100644 --- a/tests/Reactor_Notify_Test.cpp +++ b/tests/Reactor_Notify_Test.cpp @@ -184,7 +184,8 @@ main (int, char *[]) { ACE_Time_Value timeout (2); - for (int iteration = 1;; iteration++) + int shutdown = 0; + for (int iteration = 1; !shutdown; iteration++) { // Use a timeout to inform the Reactor when to shutdown. switch (ACE_Service_Config::reactor ()->handle_events (timeout)) @@ -193,8 +194,8 @@ main (int, char *[]) ACE_ERROR_RETURN ((LM_ERROR, "(%t) %p\n", "reactor"), -1); /* NOTREACHED */ case 0: - ACE_ERROR_RETURN ((LM_ERROR, "(%t) timeout\n"), 0); - /* NOTREACHED */ + shutdown = 1; + break; default: // ACE_DEBUG ((LM_DEBUG, "(%t) done dispatching %d\n", iteration)); ; |