From dd5197dd746d653f97b5cbaae8cf8991707a0947 Mon Sep 17 00:00:00 2001 From: Marijke Hengstmengel Date: Tue, 1 Nov 2011 08:44:09 +0000 Subject: Tue Nov 01 08:41:15 UTC 2011 Marijke Hengstmengel * tests/Collocation/Sender/Sender_exec.cpp: Add define in test in case of CIAO not build with ccm_direct_colloation. --- CIAO/ChangeLog.BRANCH | 5 +++++ CIAO/tests/Collocation/Sender/Sender_exec.cpp | 17 +++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CIAO/ChangeLog.BRANCH b/CIAO/ChangeLog.BRANCH index afba8cc154b..b2ba8f0030b 100644 --- a/CIAO/ChangeLog.BRANCH +++ b/CIAO/ChangeLog.BRANCH @@ -1,3 +1,8 @@ +Tue Nov 01 08:41:15 UTC 2011 Marijke Hengstmengel + * tests/Collocation/Sender/Sender_exec.cpp: + Add define in test in case of CIAO not build with + ccm_direct_colloation. + Mon Oct 31 13:55:15 UTC 2011 Marijke Hengstmengel * ciao/Containers/Container_Base.idl: * ciao/Containers/Container_Base_T.h: diff --git a/CIAO/tests/Collocation/Sender/Sender_exec.cpp b/CIAO/tests/Collocation/Sender/Sender_exec.cpp index 64daf1a536e..c5bb949dc81 100644 --- a/CIAO/tests/Collocation/Sender/Sender_exec.cpp +++ b/CIAO/tests/Collocation/Sender/Sender_exec.cpp @@ -22,6 +22,14 @@ namespace CIAO_Sender_Impl hello_exec_i::set_point (const pointer_id &p, const char * strat) { CORBA::Boolean coll = false; + +#if !defined (CCM_DIRECTCOLL) + ACE_DEBUG ((LM_DEBUG, + "SENDER: hello_exec_i::set_point pointer" + "No collocation because CIAO not build with " + "ccm_diect_collocation = 1.\n", + (void *)&p)); +#else if ((ACE_OS::strcmp("direct", strat) == 0) || (ACE_OS::strcmp("best", strat) == 0)) coll = true; @@ -31,7 +39,7 @@ namespace CIAO_Sender_Impl ACE_ERROR ((LM_DEBUG, "Error: hello_exec_i::set_point - " "Unexpected strategy <%C> \n", strat)); - +#endif ACE_DEBUG ((LM_DEBUG, "SENDER: hello_exec_i::set_point pointer <%@>\n", (void *)&p)); @@ -39,12 +47,17 @@ namespace CIAO_Sender_Impl CORBA::Long ptr_nmb = (long)&p; if (coll) { + + // In case of collocation pointer p is still the same pointer + // as at the point where poiner p was generated. + // Direct or thru_poa collocation, but thru_poa collocation is disabled, + // so remains direct . if (ptr_nmb == p.point) { ACE_DEBUG ((LM_DEBUG, "hello_exec_i::set_point - current pointer <%u> " " is same as starting pointer <%u>," - "direct or thru_poa collocation ! \n", + " direct collocation! \n", ptr_nmb, p.point)); } else -- cgit v1.2.1