summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsharath <sharath@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-01-31 03:50:20 +0000
committersharath <sharath@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-01-31 03:50:20 +0000
commitb1da088d67b04f4d8b520c12ba6c15263653ea89 (patch)
treebc47e33e33ea01cc097fca972f5faba570a08644
parent46ac06f7a37d54b70407d984fa0b8cbad56b54f5 (diff)
downloadATCD-b1da088d67b04f4d8b520c12ba6c15263653ea89.tar.gz
ChangeLogTag: 'head -1 ChangeLog'
-rw-r--r--ChangeLog9
-rw-r--r--ChangeLogs/ChangeLog-02a9
-rw-r--r--ChangeLogs/ChangeLog-03a9
-rw-r--r--tests/Log_Msg_Test.cpp28
4 files changed, 46 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index b827fdee5a3..96fbb3f0f96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Tue Jan 30 21:39:15 2001 Sharath R. Cholleti <sharath@cs.wustl.edu>
+
+ * tests/Log_Msg_Test.cpp: In funtion test_ostream(), removed the
+ if condition to check if ACE_OS::unlink() succeeds. Also set
+ the ostream to NULL before calling ACE_ERROR_RETURN(). Thanks
+ to Mike Curtis <mccurry@my-deja.com> for pointing out problem
+ caused when ACE_OS::unlink() fails. Thanks to Doug in helping
+ fix the problem.
+
Tue Jan 30 18:04:08 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
* tests/Message_Queue_Test_Ex.cpp (single_thread_performance_test):
diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a
index b827fdee5a3..96fbb3f0f96 100644
--- a/ChangeLogs/ChangeLog-02a
+++ b/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,12 @@
+Tue Jan 30 21:39:15 2001 Sharath R. Cholleti <sharath@cs.wustl.edu>
+
+ * tests/Log_Msg_Test.cpp: In funtion test_ostream(), removed the
+ if condition to check if ACE_OS::unlink() succeeds. Also set
+ the ostream to NULL before calling ACE_ERROR_RETURN(). Thanks
+ to Mike Curtis <mccurry@my-deja.com> for pointing out problem
+ caused when ACE_OS::unlink() fails. Thanks to Doug in helping
+ fix the problem.
+
Tue Jan 30 18:04:08 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
* tests/Message_Queue_Test_Ex.cpp (single_thread_performance_test):
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index b827fdee5a3..96fbb3f0f96 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,3 +1,12 @@
+Tue Jan 30 21:39:15 2001 Sharath R. Cholleti <sharath@cs.wustl.edu>
+
+ * tests/Log_Msg_Test.cpp: In funtion test_ostream(), removed the
+ if condition to check if ACE_OS::unlink() succeeds. Also set
+ the ostream to NULL before calling ACE_ERROR_RETURN(). Thanks
+ to Mike Curtis <mccurry@my-deja.com> for pointing out problem
+ caused when ACE_OS::unlink() fails. Thanks to Doug in helping
+ fix the problem.
+
Tue Jan 30 18:04:08 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
* tests/Message_Queue_Test_Ex.cpp (single_thread_performance_test):
diff --git a/tests/Log_Msg_Test.cpp b/tests/Log_Msg_Test.cpp
index 156e106552a..507a76e4d2b 100644
--- a/tests/Log_Msg_Test.cpp
+++ b/tests/Log_Msg_Test.cpp
@@ -343,23 +343,30 @@ test_ostream (void)
// Open up the file.
if (connector.connect (file,
ACE_FILE_Addr (filename)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
+ {
+ // Set the ostream back to NULL to prevent "later functions using myostream".
+ ACE_LOG_MSG->msg_ostream (ace_file_stream::instance ()->output_file ());
+ ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("connect failed for %p\n"),
filename),
1);
+ }
+
// Unlink this file right away so that it is automatically removed
- // when the process exits.
- else if (ACE_OS::unlink (filename) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("unlink failed for %p\n"),
- filename),
- 1);
+ // when the process exits.Ignore error returns in case this operation
+ // is not supported.
+ ACE_OS::unlink(filename);
+
ACE_FILE_Info info;
if (file.get_info (info) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
+ {
+ // Set the ostream back to NULL to prevent "later functions using myostream".
+ ACE_LOG_MSG->msg_ostream (ace_file_stream::instance ()->output_file ());
+ ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("get_info failed on %p\n"),
filename),
-1);
+ }
// Allocate the input buffer
char *buffer;
@@ -373,11 +380,15 @@ test_ostream (void)
ssize_t size = file.recv (buffer,
info.size_);
if (size != info.size_)
+ {
+ // Set the ostream back to NULL to prevent "later functions using myostream".
+ ACE_LOG_MSG->msg_ostream (ace_file_stream::instance ()->output_file ());
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("Read %d bytes, rather than expected %d bytes\n"),
size,
info.size_),
-1);
+ }
// Make sure to NUL-terminate this turkey!
buffer[size] = '\0';
@@ -404,7 +415,6 @@ int
main (int, char *argv[])
{
ACE_START_TEST (ACE_TEXT ("Log_Msg_Test"));
-
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("**** running ostream test\n")));