summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/exceptions/Collocated.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/exceptions/Collocated.cpp')
-rw-r--r--cpp/test/Ice/exceptions/Collocated.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/test/Ice/exceptions/Collocated.cpp b/cpp/test/Ice/exceptions/Collocated.cpp
index ef884967870..bcd9e1882bb 100644
--- a/cpp/test/Ice/exceptions/Collocated.cpp
+++ b/cpp/test/Ice/exceptions/Collocated.cpp
@@ -24,8 +24,8 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
Ice::ObjectPtr object = new ThrowerI();
adapter->add(object, communicator->stringToIdentity("thrower"));
- ThrowerPrx allTests(const Ice::CommunicatorPtr&, bool);
- allTests(communicator, true);
+ ThrowerPrx allTests(const Ice::CommunicatorPtr&);
+ allTests(communicator);
return EXIT_SUCCESS;
}
@@ -38,7 +38,11 @@ main(int argc, char* argv[])
try
{
- communicator = Ice::initialize(argc, argv);
+ Ice::InitializationData initData;
+ initData.properties = Ice::createProperties();
+ initData.properties->setProperty("Ice.MessageSizeMax", "10"); // 10KB max
+ initData.properties->setProperty("Ice.Warn.Dispatch", "0");
+ communicator = Ice::initialize(argc, argv, initData);
status = run(argc, argv, communicator);
}
catch(const Ice::Exception& ex)