From c955b910dfea8ac5726af8bbc2c442a6fb908a10 Mon Sep 17 00:00:00 2001 From: levine Date: Fri, 24 Nov 2000 03:46:38 +0000 Subject: ChangeLogTag: Thu Nov 23 21:17:16 2000 David L. Levine --- tests/Reactor_Notify_Test.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/Reactor_Notify_Test.cpp b/tests/Reactor_Notify_Test.cpp index e357e898c2e..ea56e5683d9 100644 --- a/tests/Reactor_Notify_Test.cpp +++ b/tests/Reactor_Notify_Test.cpp @@ -392,7 +392,7 @@ run_notify_purge_test (void) status)); // destructor should cause n2's notify to be cancelled. } - + ACE_Time_Value t (1); status = r->handle_events (t); // Should be nothing to do, and time out return status < 0 ? 1 : 0; // Return 0 for all ok, else error @@ -404,6 +404,10 @@ main (int, ACE_TCHAR *[]) { ACE_START_TEST (ACE_TEXT ("Reactor_Notify_Test")); + // To automatically delete the ACE_Reactor instance at program + // termination: + auto_ptr r (ACE_Reactor::instance ()); + int test_result = 0; // Innocent until proven guilty test_result = run_notify_purge_test (); -- cgit v1.2.1