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/exceptions/Server.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/exceptions/Server.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/Server.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/test/Ice/exceptions/Server.cpp b/cpp/test/Ice/exceptions/Server.cpp index 4177ba51722..a1fae488246 100644 --- a/cpp/test/Ice/exceptions/Server.cpp +++ b/cpp/test/Ice/exceptions/Server.cpp @@ -18,6 +18,11 @@ using namespace std; int run(int, char**, const Ice::CommunicatorPtr& communicator) { + communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0) + ":udp"); + communicator->getProperties()->setProperty("TestAdapter2.Endpoints", getTestEndpoint(communicator, 1)); + communicator->getProperties()->setProperty("TestAdapter2.MessageSizeMax", "0"); + communicator->getProperties()->setProperty("TestAdapter3.Endpoints", getTestEndpoint(communicator, 2)); + communicator->getProperties()->setProperty("TestAdapter3.MessageSizeMax", "1"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); Ice::ObjectAdapterPtr adapter2 = communicator->createObjectAdapter("TestAdapter2"); Ice::ObjectAdapterPtr adapter3 = communicator->createObjectAdapter("TestAdapter3"); @@ -46,12 +51,7 @@ main(int argc, char* argv[]) initData.properties = Ice::createProperties(argc, argv); initData.properties->setProperty("Ice.Warn.Dispatch", "0"); initData.properties->setProperty("Ice.Warn.Connections", "0"); - initData.properties->setProperty("TestAdapter.Endpoints", "default -p 12010:udp"); initData.properties->setProperty("Ice.MessageSizeMax", "10"); // 10KB max - initData.properties->setProperty("TestAdapter2.Endpoints", "default -p 12011"); - initData.properties->setProperty("TestAdapter2.MessageSizeMax", "0"); - initData.properties->setProperty("TestAdapter3.Endpoints", "default -p 12012"); - initData.properties->setProperty("TestAdapter3.MessageSizeMax", "1"); Ice::CommunicatorHolder ich = Ice::initialize(argc, argv, initData); return run(argc, argv, ich.communicator()); |