diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-05 02:37:49 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-05 02:37:49 +0000 |
commit | a68d179eaeff0c083a6cc9251e292780d5bf4ccf (patch) | |
tree | 55fa2299c46b4fdcc056c91272cabc977cdd5d6e /tests | |
parent | 97c8eefe70943592fdb1d27b90c5b2790980de1d (diff) | |
download | ATCD-a68d179eaeff0c083a6cc9251e292780d5bf4ccf.tar.gz |
(~Test_Task): move ASSERT after the printout, so we can see why it failed. (svc): added printout with thread ID. (main): deleted reactor at end of test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Reactors_Test.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Reactors_Test.cpp b/tests/Reactors_Test.cpp index 9a168ba22c2..358acb370bb 100644 --- a/tests/Reactors_Test.cpp +++ b/tests/Reactors_Test.cpp @@ -68,10 +68,10 @@ Test_Task::~Test_Task (void) { ACE_GUARD (ACE_Recursive_Thread_Mutex, ace_mon, reclock_); - ACE_ASSERT (Test_Task::task_count_ == 0); ACE_DEBUG ((LM_DEBUG, "(%t) TT- Test_Task::task_count_ = %d\n", Test_Task::task_count_)); + ACE_ASSERT (Test_Task::task_count_ == 0); } int @@ -98,6 +98,8 @@ Test_Task::svc (void) { ACE_NEW_THREAD; + ACE_DEBUG ((LM_DEBUG, "(%t) svc\n")); + for (int i = 0; i < ACE_MAX_ITERATIONS; i++) { ACE_OS::thr_yield (); @@ -206,7 +208,9 @@ main (int, char *[]) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "spawn"), -1); ACE_Thread_Manager::instance ()->wait (); + reactor->close (); + delete reactor; // Note that the destructor of ACE_Service_Config daemon will close // down the ACE_Reactor::instance(). #else |