summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-09-25 14:50:35 +0000
committeriliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-09-25 14:50:35 +0000
commit511df3a89f24a478f1578569199cf67be588454c (patch)
treeeaba28cc37b09a0a5253276e2d6e4bf8ebe5cb50
parent112189a1397f62ac7ae55d65ede46fa4a826cdef (diff)
downloadATCD-511df3a89f24a478f1578569199cf67be588454c.tar.gz
ChangeLogTag: Fri Sep 22 21:02:58 UTC 2006 Iliyan Jeliazkov <iliyan@ociweb.com>
-rw-r--r--ACE/tests/Service_Config_Test.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/ACE/tests/Service_Config_Test.cpp b/ACE/tests/Service_Config_Test.cpp
index cbb9698ad64..0f2f6332d94 100644
--- a/ACE/tests/Service_Config_Test.cpp
+++ b/ACE/tests/Service_Config_Test.cpp
@@ -243,25 +243,23 @@ testLimits (int , ACE_TCHAR *[])
u_int error0 = error;
- // Ensure enough room for one
+ // Ensure enough room for one in a own
ACE_Service_Gestalt one (1, true);
// Add two.
// We cant simply rely on the fact that insertion fails, because it
// is typical to have no easy way of getting detailed error
// information from a parser.
- int ret1 = one.process_directive (svc_desc1);
- if (ret1 != 0 ||
- -1 == one.find (ACE_TEXT ("Test_Object_1_More"), 0, 0))
+ one.process_directive (svc_desc1);
+ one.process_directive (svc_desc2);
+
+ if (-1 == one.find (ACE_TEXT ("Test_Object_1_More"), 0, 0))
{
++error;
ACE_ERROR ((LM_ERROR, ACE_TEXT("Expected to have registered the first service\n")));
}
- int ret2 = one.process_directive (svc_desc2);
-
- if (ret2 == 0 ||
- -1 != one.find (ACE_TEXT ("Test_Object_2_More"), 0, 0))
+ if (-1 != one.find (ACE_TEXT ("Test_Object_2_More"), 0, 0))
{
++error;
ACE_ERROR ((LM_ERROR, ACE_TEXT("Being able to add more than 1 service was not expected\n")));