1 #include "tao/RTCORBA/RTCORBA.h"
3 #include "ace/Get_Opt.h"
4 #include "ace/OS_NS_stdio.h"
7 test_multiple_orbs (const char *test_name
,
14 CORBA::ORB_var
*orbs
=
15 new CORBA::ORB_var
[iterations
];
17 RTCORBA::RTORB_var
*rt_orbs
=
18 new RTCORBA::RTORB_var
[iterations
];
27 ACE_OS::sprintf (name
, "%s %d", test_name
, i
);
30 CORBA::ORB_init (argc
,
36 CORBA::Object_var object
=
37 orbs
[i
]->resolve_initial_references ("RTORB");
40 RTCORBA::RTORB::_narrow (object
.in ());
42 ACE_ASSERT (rt_orbs
[i
].in () != RTCORBA::RTORB::_nil ());
56 catch (const CORBA::Exception
& ex
)
58 ex
._tao_print_exception ("Unexpected exception caught in ORB_init");
69 ACE_TMAIN (int argc
, ACE_TCHAR
*argv
[])
76 test_multiple_orbs ("non-RT ORBs, disable destroy",
82 ACE_ASSERT (result
== 0);
88 test_multiple_orbs ("non-RT ORBs, enable destroy",
94 ACE_ASSERT (result
== 0);
100 test_multiple_orbs ("RT ORBs, disable destroy",
106 ACE_ASSERT (result
== 0);
112 test_multiple_orbs ("RT ORBs, enable destroy",
118 ACE_ASSERT (result
== 0);