diff options
author | Mark Spruiell <mes@zeroc.com> | 2015-12-17 11:45:27 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2015-12-17 11:45:27 -0800 |
commit | 884e2be89b0cd997f372c59f05bf05a9a5372b60 (patch) | |
tree | 53d2123abf22042f827d0e83b6093cea038c3b3a /cpp/test/Ice/custom/Collocated.cpp | |
parent | Merge branch '3.6' (diff) | |
download | ice-884e2be89b0cd997f372c59f05bf05a9a5372b60.tar.bz2 ice-884e2be89b0cd997f372c59f05bf05a9a5372b60.tar.xz ice-884e2be89b0cd997f372c59f05bf05a9a5372b60.zip |
Fixes for Bluetooth plug-ins.
Updates to testsuite to support Bluetooth and remote servers.
Diffstat (limited to 'cpp/test/Ice/custom/Collocated.cpp')
-rw-r--r-- | cpp/test/Ice/custom/Collocated.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/test/Ice/custom/Collocated.cpp b/cpp/test/Ice/custom/Collocated.cpp index 4aa75410b6b..3c072aed1bf 100644 --- a/cpp/test/Ice/custom/Collocated.cpp +++ b/cpp/test/Ice/custom/Collocated.cpp @@ -20,6 +20,7 @@ DEFINE_TEST("collocated") int run(int, char**, const Ice::CommunicatorPtr& communicator) { + communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0)); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); adapter->add(new TestIntfI(communicator), communicator->stringToIdentity("test")); adapter->add(new Test1::WstringClassI, communicator->stringToIdentity("wstring1")); @@ -45,10 +46,7 @@ main(int argc, char** argv) IceUtil::setProcessStringConverter(new Test::StringConverterI()); IceUtil::setProcessWstringConverter(new Test::WstringConverterI()); - Ice::InitializationData initData; - initData.properties = Ice::createProperties(argc, argv); - initData.properties->setProperty("TestAdapter.Endpoints", "default -p 12010"); - communicator = Ice::initialize(argc, argv, initData); + communicator = Ice::initialize(argc, argv); status = run(argc, argv, communicator); } catch(const Ice::Exception& ex) |