diff options
Diffstat (limited to 'cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp')
-rw-r--r-- | cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp b/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp index ea68de1f7f9..934ba14b99f 100644 --- a/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp +++ b/cpp/test/Ice/threadPoolPriority/ServerCustomThreadPool.cpp @@ -18,7 +18,8 @@ run(int, char**, const Ice::CommunicatorPtr& communicator) { Ice::PropertiesPtr properties = communicator->getProperties(); properties->setProperty("Ice.Warn.Dispatch", "0"); - communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010 -t 10000:udp"); + communicator->getProperties()->setProperty("TestAdapter.Endpoints", + getTestEndpoint(communicator, 0) + " -t 10000:udp"); communicator->getProperties()->setProperty("TestAdapter.ThreadPool.Size", "1"); // @@ -51,7 +52,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator) communicator->getProperties()->setProperty("TestAdapter.ThreadPool.ThreadPriority", "50"); #endif Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); - Ice::ObjectPtr object = new PriorityI(adapter); + Ice::ObjectPtr object = ICE_MAKE_SHARED(PriorityI, adapter); adapter->add(object, communicator->stringToIdentity("test")); adapter->activate(); communicator->waitForShutdown(); |