diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2004-08-24 05:21:32 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2004-08-24 05:21:32 +0000 |
commit | e26590ac3b4297342ea1a52ca0a6cb5faf11c0d9 (patch) | |
tree | ca70711d92e8737b35aac8e8be5fd9b5e46462df | |
parent | 32f06c588b53fd27249a774361bcfb8b5381828b (diff) | |
download | ATCD-e26590ac3b4297342ea1a52ca0a6cb5faf11c0d9.tar.gz |
ChangeLogTag:Mon Aug 23 22:19:16 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | tests/CDR_Test.cpp | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index c60fa66e96e..769451e6f5c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Aug 23 22:19:16 2004 Ossama Othman <ossama@dre.vanderbilt.edu> + + * tests/CDR_Test.cpp (run_main): + + Added run-time assertions that verify proper CDR type sizes + (e.g. sizeof (ACE_CDR::Boolean) == 1). + Mon Aug 23 19:18:58 2004 J.T. Conklin <jtc@acorntoolworks.com> * m4/config_h.m4: diff --git a/tests/CDR_Test.cpp b/tests/CDR_Test.cpp index ed4fff4a373..49582de3872 100644 --- a/tests/CDR_Test.cpp +++ b/tests/CDR_Test.cpp @@ -449,6 +449,17 @@ run_main (int argc, ACE_TCHAR *argv[]) } } + // Sanity checks. + ACE_ASSERT (sizeof (ACE_CDR::Boolean) == 1); + ACE_ASSERT (sizeof (ACE_CDR::Octet) == 1); + ACE_ASSERT (sizeof (ACE_CDR::WChar) >= 2); + ACE_ASSERT (sizeof (ACE_CDR::Short) == 2); + ACE_ASSERT (sizeof (ACE_CDR::Long) == 4); + ACE_ASSERT (sizeof (ACE_CDR::LongLong) == 8); + ACE_ASSERT (sizeof (ACE_CDR::Float) == 4); + ACE_ASSERT (sizeof (ACE_CDR::Double) == 8); + ACE_ASSERT (sizeof (ACE_CDR::LongDouble) == 16); + ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Testing ACE CDR functions - short stream\n\n"))); |