summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-12 07:13:46 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-12 07:13:46 +0000
commitff20c5bc4d4488e459a8574f65648d456f2565ad (patch)
treec8c4f1834a97fe6b99009a3c58021d1731f17bb8 /tests
parent492ead6288d707cd3f911c1aa65ddc64e9b188d9 (diff)
downloadATCD-ff20c5bc4d4488e459a8574f65648d456f2565ad.tar.gz
Moved the code to redirect Log_Msg output back to stderr into the destructor.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_config.h b/tests/test_config.h
index be2804006e4..75049f5be24 100644
--- a/tests/test_config.h
+++ b/tests/test_config.h
@@ -237,6 +237,9 @@ ACE_Test_Output::ACE_Test_Output (void)
ACE_Test_Output::~ACE_Test_Output (void)
{
+ ACE_LOG_MSG->msg_ostream (&cerr);
+ ACE_LOG_MSG->clr_flags (ACE_Log_Msg::OSTREAM);
+ ACE_LOG_MSG->set_flags (ACE_Log_Msg::STDERR);
#if !defined (ACE_HAS_WINCE)
delete this->output_file_;
#endif /* ACE_HAS_WINCE */
@@ -328,9 +331,6 @@ ACE_Test_Output::close (void)
ACE_OS::fflush (this->output_file_);
ACE_OS::fclose (this->output_file_);
#endif /* !ACE_HAS_WINCE */
- ACE_LOG_MSG->msg_ostream (&cerr);
- ACE_LOG_MSG->clr_flags (ACE_Log_Msg::OSTREAM);
- ACE_LOG_MSG->set_flags (ACE_Log_Msg::STDERR);
}
#if 0 /* old WinCE stuff */