diff options
Diffstat (limited to 'ACE/tests/Bug_1890_Regression_Test.cpp')
-rw-r--r-- | ACE/tests/Bug_1890_Regression_Test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ACE/tests/Bug_1890_Regression_Test.cpp b/ACE/tests/Bug_1890_Regression_Test.cpp index 3f489c5bad2..98622638223 100644 --- a/ACE/tests/Bug_1890_Regression_Test.cpp +++ b/ACE/tests/Bug_1890_Regression_Test.cpp @@ -16,10 +16,7 @@ #include "ace/Event_Handler.h" #include "ace/Reactor.h" #include "ace/Select_Reactor.h" - -ACE_RCSID (tests, - Bug_1890_Regression_Test, - "$Id$") +#include "ace/Auto_Ptr.h" int const nhandlers = 3; @@ -105,8 +102,11 @@ run_main (int, ACE_TCHAR *[]) // Bug 1890 is all about ACE_Select_Reactor, so run it on that reactor // regardless of platform. - ACE_Select_Reactor select_reactor; - ACE_Reactor reactor (&select_reactor); + ACE_Select_Reactor *impl_ptr = 0; + ACE_NEW_RETURN (impl_ptr, ACE_Select_Reactor, -1); + auto_ptr<ACE_Select_Reactor> auto_impl (impl_ptr); + + ACE_Reactor reactor (impl_ptr); // Create the timer, this is the main driver for the test Timer * timer = new Timer; |