summaryrefslogtreecommitdiff
path: root/tests/Log_Msg_Test.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-09-02 21:41:15 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-09-02 21:41:15 +0000
commit52cc19d92a015569d9783a28226426c574975dc6 (patch)
treeb14321ca64825ec3c363eb082820915ee81dbcfa /tests/Log_Msg_Test.cpp
parenta9120c8ccec24050a7d26d77de56997e393fac99 (diff)
downloadATCD-52cc19d92a015569d9783a28226426c574975dc6.tar.gz
ChangeLogTag:Thu Sep 2 12:21:41 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'tests/Log_Msg_Test.cpp')
-rw-r--r--tests/Log_Msg_Test.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/Log_Msg_Test.cpp b/tests/Log_Msg_Test.cpp
index fa93c461f9d..006af21155f 100644
--- a/tests/Log_Msg_Test.cpp
+++ b/tests/Log_Msg_Test.cpp
@@ -209,7 +209,17 @@ test_log_msg_features (const char *program)
ACE_ERROR ((LM_ERROR,
"op_status and errnum failed!\n"));
- // Exercise many different combinations of STDERR and OSTREAM.
+ const char *badname = "badname";
+
+ if (ACE_OS::open (badname,
+ O_RDONLY) == ACE_INVALID_HANDLE)
+ ACE_ERROR ((LM_ERROR,
+ "%n: (%x), can't open %s%r\n",
+ 10000,
+ badname,
+ cleanup));
+
+ // Exercise many different combinations of OSTREAM.
ACE_DEBUG ((LM_INFO,
ASYS_TEXT ("%10f, %*s%s = %d\n"),
@@ -258,16 +268,6 @@ test_log_msg_features (const char *program)
"world",
10000 * counter++));
- const char *badname = "badname";
-
- if (ACE_OS::open (badname,
- O_RDONLY) == ACE_INVALID_HANDLE)
- ACE_DEBUG ((LM_DEBUG,
- "%n: (%x), %p%r\n",
- 10000,
- badname,
- cleanup));
-
static int array[] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048};
// Print out the binary bytes of the array in hex form.