diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-11-24 03:46:38 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-11-24 03:46:38 +0000 |
commit | c955b910dfea8ac5726af8bbc2c442a6fb908a10 (patch) | |
tree | 61488c2a5f75f1c547ef1abe876e570040d2a36f /tests | |
parent | decabe6be537b58d30811337e9caf188e14c2c61 (diff) | |
download | ATCD-c955b910dfea8ac5726af8bbc2c442a6fb908a10.tar.gz |
ChangeLogTag: Thu Nov 23 21:17:16 2000 David L. Levine <levine@cs.wustl.edu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Reactor_Notify_Test.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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)); // <ap> 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<ACE_Reactor> r (ACE_Reactor::instance ()); + int test_result = 0; // Innocent until proven guilty test_result = run_notify_purge_test (); |