summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/custom/ServerAMD.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2015-12-17 11:45:27 -0800
committerMark Spruiell <mes@zeroc.com>2015-12-17 11:45:27 -0800
commit884e2be89b0cd997f372c59f05bf05a9a5372b60 (patch)
tree53d2123abf22042f827d0e83b6093cea038c3b3a /cpp/test/Ice/custom/ServerAMD.cpp
parentMerge branch '3.6' (diff)
downloadice-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/ServerAMD.cpp')
-rw-r--r--cpp/test/Ice/custom/ServerAMD.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/test/Ice/custom/ServerAMD.cpp b/cpp/test/Ice/custom/ServerAMD.cpp
index 82593b21a6d..a8e2a653140 100644
--- a/cpp/test/Ice/custom/ServerAMD.cpp
+++ b/cpp/test/Ice/custom/ServerAMD.cpp
@@ -20,6 +20,7 @@ DEFINE_TEST("serveramd")
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"));
@@ -46,11 +47,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)