diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-06 16:01:01 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-06 16:01:01 +0000 |
commit | 6d7783185709f7850d7323901d7cecdb2fdd1f8a (patch) | |
tree | 72402f084d247f2c2c89f3df483bb582046d19be /performance-tests | |
parent | de13b8094efdedd81bb37a985f55f3cef855fba8 (diff) | |
download | ATCD-6d7783185709f7850d7323901d7cecdb2fdd1f8a.tar.gz |
ChangeLogTag: Thu Jul 06 10:59:41 2000 David L. Levine <levine@cs.wustl.edu>
Diffstat (limited to 'performance-tests')
-rw-r--r-- | performance-tests/Misc/test_naming.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/performance-tests/Misc/test_naming.cpp b/performance-tests/Misc/test_naming.cpp index 8d814bad293..6d9ee59d6d1 100644 --- a/performance-tests/Misc/test_naming.cpp +++ b/performance-tests/Misc/test_naming.cpp @@ -46,7 +46,9 @@ bind (ACE_Naming_Context *ns_context, int result) ACE_WString w_value (value); ACE_OS::sprintf (type, "%s%d", "type", i); - ACE_ASSERT (ns_context->bind (w_name, w_value, type) == result); + if (ns_context->bind (w_name, w_value, type) != result) { + ACE_ERROR ((LM_ERROR, "bind failed!")); + } } ACE_DEBUG ((LM_DEBUG, "\n")); } @@ -62,7 +64,9 @@ rebind (ACE_Naming_Context *ns_context, int result) ACE_OS::sprintf (value, "%s%d", "value", -i); ACE_WString w_value (value); ACE_OS::sprintf (type, "%s%d", "type", -i); - ACE_ASSERT (ns_context->rebind (w_name, w_value, type) == result); + if (ns_context->rebind (w_name, w_value, type) != result) { + ACE_ERROR ((LM_ERROR, "rebind failed!")); + } } } @@ -74,7 +78,9 @@ unbind (ACE_Naming_Context *ns_context, int result) { ACE_OS::sprintf (name, "%s%d", "name", i); ACE_WString w_name (name); - ACE_ASSERT (ns_context->unbind (w_name) == result); + if (ns_context->unbind (w_name) != result) { + ACE_ERROR ((LM_ERROR, "unbind failed!")); + } } } @@ -107,6 +113,9 @@ find (ACE_Naming_Context *ns_context, int sign, int result) ACE_WString val (temp_val); int resolve_result = ns_context->resolve (w_name, w_value, type_out); + if (resolve_result != result) { + ACE_ERROR ((LM_ERROR, "resolved failed!")); + } ACE_ASSERT (resolve_result == result); ACE_UNUSED_ARG (resolve_result); // To avoid compile warning // with ACE_NDEBUG. |