diff options
author | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-03-13 17:32:43 +0000 |
---|---|---|
committer | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-03-13 17:32:43 +0000 |
commit | 9551bf40b239c7a59d405bbac984f48f6f556ebe (patch) | |
tree | 5d118cb51468a6c8f5746853b905208a193b492c /TAO/tests/Bug_2669_Regression | |
parent | 7cddfd814db62d1bcc1a4f8be3c73e53995297de (diff) | |
download | ATCD-9551bf40b239c7a59d405bbac984f48f6f556ebe.tar.gz |
ChangeLogTag: Tue Mar 13 18:24:27 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO/tests/Bug_2669_Regression')
-rw-r--r-- | TAO/tests/Bug_2669_Regression/client.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/TAO/tests/Bug_2669_Regression/client.cpp b/TAO/tests/Bug_2669_Regression/client.cpp index 36d88f5030c..bd003cf51ab 100644 --- a/TAO/tests/Bug_2669_Regression/client.cpp +++ b/TAO/tests/Bug_2669_Regression/client.cpp @@ -76,8 +76,13 @@ main (int argc, char *argv[]) ChildHandler child_handler; NonRelatedChildHandler non_related_child_handler; + PortableServer::ObjectId_var id = + poa_var->activate_object (&child_handler); + + CORBA::Object_var object = poa_var->id_to_reference (id.in ()); + ChildModule::AMI_ChildInterfaceHandler_var the_child_handler_var = - child_handler._this (); + ChildModule::AMI_ChildInterfaceHandler::_narrow (object.in ()); const char * expectedid = "IDL:child.pragma.prefix/ChildModule/AMI_ChildInterfaceHandler:1.0"; if (ACE_OS::strcmp (the_child_handler_var->_interface_repository_id (), expectedid) != 0) @@ -89,8 +94,12 @@ main (int argc, char *argv[]) } // This handler has no relationship with the above in IDL. + id = poa_var->activate_object (&non_related_child_handler); + + object = poa_var->id_to_reference (id.in ()); + AMI_ChildInterfaceHandler_var the_non_related_child_handler_var = - non_related_child_handler._this (); + AMI_ChildInterfaceHandler::_narrow (object.in ()); // Check that both handler objects narrow successfully to their parent // handler types... |