summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/On_Demand_Act_Direct_Coll/Collocated_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/POA/On_Demand_Act_Direct_Coll/Collocated_Test.cpp')
-rw-r--r--TAO/tests/POA/On_Demand_Act_Direct_Coll/Collocated_Test.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/TAO/tests/POA/On_Demand_Act_Direct_Coll/Collocated_Test.cpp b/TAO/tests/POA/On_Demand_Act_Direct_Coll/Collocated_Test.cpp
index 47ac698d0f9..741fb6c3ba6 100644
--- a/TAO/tests/POA/On_Demand_Act_Direct_Coll/Collocated_Test.cpp
+++ b/TAO/tests/POA/On_Demand_Act_Direct_Coll/Collocated_Test.cpp
@@ -9,6 +9,8 @@
const ACE_TCHAR *output = ACE_TEXT("test.ior");
const ACE_TCHAR *input = ACE_TEXT("file://test.ior");
CORBA::Boolean exception_occured = false;
+ACE_CString server_orb;
+ACE_CString client_orb;
int
parse_args (int argc, ACE_TCHAR *argv[])
@@ -55,7 +57,8 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
ACE_Argv_Type_Converter satc (argc, argv);
CORBA::ORB_var sorb =
CORBA::ORB_init (satc.get_argc (),
- satc.get_TCHAR_argv ());
+ satc.get_TCHAR_argv (),
+ server_orb.c_str());
ACE_Manual_Event me;
Server_Task server_task (output,
@@ -75,7 +78,8 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
ACE_Argv_Type_Converter catc (argc, argv);
CORBA::ORB_var corb =
CORBA::ORB_init (catc.get_argc (),
- catc.get_TCHAR_argv ());
+ catc.get_TCHAR_argv (),
+ client_orb.c_str());
Client_Task client_task (input,
corb.in (),
@@ -94,6 +98,10 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
// Now that all threads have completed we can destroy the ORB
sorb->destroy ();
+ if (server_orb != client_orb)
+ {
+ corb->destroy();
+ }
}
catch (const CORBA::Exception&)
{