summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-09-02 21:30:10 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-09-02 21:30:10 +0000
commitdd22611f334909e39bb402b0ede6abfa4e198961 (patch)
tree0da48b2a538a40a5b1b7b5005813babb737ca23b
parent3607e0fd4c5b0014b6ea32ea4a80e9367ad0b430 (diff)
downloadATCD-dd22611f334909e39bb402b0ede6abfa4e198961.tar.gz
ChangeLogTag:Thu Sep 2 12:21:41 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
-rw-r--r--tests/Log_Msg_Test.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/Log_Msg_Test.cpp b/tests/Log_Msg_Test.cpp
index b07742258d4..ede707c5f64 100644
--- a/tests/Log_Msg_Test.cpp
+++ b/tests/Log_Msg_Test.cpp
@@ -258,6 +258,16 @@ 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_ERROR ((LM_ERROR,
+ "%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.
@@ -294,16 +304,6 @@ test_log_msg_features (const char *program)
ASYS_TEXT ("This LM_INFO message should not print!\n")));
ACE_DEBUG ((LM_DEBUG,
ASYS_TEXT ("This LM_DEBUG message should not print!\n")));
-
- const char *badname = "badname";
-
- if (ACE_OS::open (badname, O_RDONLY) == ACE_INVALID_HANDLE)
- ACE_ERROR ((LM_ERROR,
- "%n: (%x), %p%r\n",
- 10000,
- badname,
- cleanup));
-
}
static int