diff options
Diffstat (limited to 'tests/Naming_Test.cpp')
-rw-r--r-- | tests/Naming_Test.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/tests/Naming_Test.cpp b/tests/Naming_Test.cpp index c436cd9cbbf..8c40a7c16c7 100644 --- a/tests/Naming_Test.cpp +++ b/tests/Naming_Test.cpp @@ -65,8 +65,7 @@ test_bind (ACE_Naming_Context &ns_context) ACE_NS_WString w_value (value); ACE_OS::sprintf (type, "%s%d", "type", array [i]); - int bind_result = ns_context.bind (w_name, w_value, type); - ACE_ASSERT (bind_result != -1); + ACE_ASSERT (ns_context.bind (w_name, w_value, type) != -1); } } @@ -80,10 +79,7 @@ test_find_failure (ACE_Naming_Context &ns_context) // Do the finds. for (size_t i = 0; i < ACE_NS_MAX_ENTRIES; i++) - { - int resolve = ns_context.resolve (w_name, w_value, l_type); - ACE_ASSERT (resolve == -1); - } + ACE_ASSERT (ns_context.resolve (w_name, w_value, l_type) == -1); } static void @@ -102,8 +98,7 @@ test_rebind (ACE_Naming_Context &ns_context) ACE_NS_WString w_value (value); ACE_OS::sprintf (type, "%s%d", "type", -array[i]); - int rebind = ns_context.rebind (w_name, w_value, type); - ACE_ASSERT (rebind != -1); + ACE_ASSERT (ns_context.rebind (w_name, w_value, type) != -1); } } @@ -118,8 +113,7 @@ test_unbind (ACE_Naming_Context &ns_context) { ACE_OS::sprintf (name, "%s%d", "name", array[i]); ACE_NS_WString w_name (name); - int unbind = ns_context.unbind (w_name); - ACE_ASSERT (unbind != -1); + ACE_ASSERT (ns_context.unbind (w_name) != -1); } } @@ -153,8 +147,7 @@ test_find (ACE_Naming_Context &ns_context, int sign, int result) char *type_out = 0; ACE_NS_WString val (temp_val); - int resolve_result = ns_context.resolve (w_name, w_value, type_out); - ACE_ASSERT (resolve_result == result); + ACE_ASSERT (ns_context.resolve (w_name, w_value, type_out) == result); char *l_value = w_value.char_rep (); |