diff options
author | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-08 18:56:44 +0000 |
---|---|---|
committer | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-08 18:56:44 +0000 |
commit | 9de17b87b7e9872326ad66cd9617266ae39bc57e (patch) | |
tree | cb8054eabb732c0a919a46d081c6b8c971ecf175 | |
parent | ab414be5bc9978490ec1f117cc9c8c32f92020f7 (diff) | |
download | ATCD-9de17b87b7e9872326ad66cd9617266ae39bc57e.tar.gz |
ChangeLogTag: Mon Jan 8 18:54:55 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r-- | ACE/ChangeLog | 9 | ||||
-rw-r--r-- | ACE/tests/Bug_1890_Regression_Test.cpp | 9 | ||||
-rw-r--r-- | ACE/tests/Bug_2540_Regression_Test.cpp | 13 |
3 files changed, 19 insertions, 12 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog index 12b458af5ec..af40d2913d4 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,12 @@ +Mon Jan 8 18:54:55 UTC 2007 Chad Elliott <elliott_c@ociweb.com> + + * tests/Bug_1890_Regression_Test.cpp: + * tests/Bug_2540_Regression_Test.cpp: + + Reverted my previous changes where the ACE_Select_Reactor was + explicitly chosen. The bug reports specifically talk about the + select reactor, but they actually apply to others as well. + Mon Jan 8 18:50:30 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl> * ace/os_include/os_string.h: diff --git a/ACE/tests/Bug_1890_Regression_Test.cpp b/ACE/tests/Bug_1890_Regression_Test.cpp index 8a8cade4d90..9e94a1ebb2d 100644 --- a/ACE/tests/Bug_1890_Regression_Test.cpp +++ b/ACE/tests/Bug_1890_Regression_Test.cpp @@ -14,7 +14,7 @@ #include "ace/Pipe.h" #include "ace/Event_Handler.h" -#include "ace/Select_Reactor.h" +#include "ace/Reactor.h" ACE_RCSID (tests, Bug_1890_Regression_Test, @@ -95,19 +95,18 @@ run_main (int, ACE_TCHAR *[]) { ACE_START_TEST (ACE_TEXT ("Bug_1890_Regression_Test")); - ACE_Select_Reactor select_reactor; - ACE_Reactor reactor (&select_reactor); + ACE_Reactor * reactor = ACE_Reactor::instance(); // Create the timer, this is the main driver for the test Timer * timer = new Timer; // Initialize the timer and register with the reactor - if (-1 == timer->open(&reactor)) + if (-1 == timer->open(reactor)) { ACE_ERROR_RETURN ((LM_ERROR, "Cannot initialize timer\n"), -1); } - reactor.run_reactor_event_loop(); + reactor->run_reactor_event_loop(); // Verify that the results are what we expect if (!timer->check_expected_results()) diff --git a/ACE/tests/Bug_2540_Regression_Test.cpp b/ACE/tests/Bug_2540_Regression_Test.cpp index 8999ee851c2..4847d4e6ae1 100644 --- a/ACE/tests/Bug_2540_Regression_Test.cpp +++ b/ACE/tests/Bug_2540_Regression_Test.cpp @@ -14,7 +14,7 @@ #include "ace/Pipe.h" #include "ace/Event_Handler.h" -#include "ace/Select_Reactor.h" +#include "ace/Reactor.h" ACE_RCSID (tests, Bug_2540_Regression_Test, @@ -67,7 +67,7 @@ private: * in a repeating interval. On the first @c initial_iterations the Timer * writes data through all of its handlers. On iteration @c initial_iteration * it triggers bug 2540 by removing two handlers from the reactor. - * + * */ class Timer : public ACE_Event_Handler { @@ -99,19 +99,18 @@ run_main (int, ACE_TCHAR *[]) { ACE_START_TEST (ACE_TEXT ("Bug_2540_Regression_Test")); - ACE_Select_Reactor select_reactor; - ACE_Reactor reactor (&select_reactor); + ACE_Reactor * reactor = ACE_Reactor::instance(); // Create the timer, this is the main driver for the test Timer * timer = new Timer; // Initialize the timer and register with the reactor - if (-1 == timer->open(&reactor)) + if (-1 == timer->open(reactor)) { ACE_ERROR_RETURN ((LM_ERROR, "Cannot initialize timer\n"), -1); } - reactor.run_reactor_event_loop(); + reactor->run_reactor_event_loop(); // Verify that the results are what we expect if (!timer->check_expected_results()) @@ -256,7 +255,7 @@ int Timer::handle_timeout(ACE_Time_Value const &, void const *) // The first iterations are there just to prime things. return 0; } - + if (iteration_ == initial_iterations) { // We expect the special_handler() to work normally after this |