summaryrefslogtreecommitdiff
path: root/cppe/test/IceE/exceptions
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/test/IceE/exceptions')
-rw-r--r--cppe/test/IceE/exceptions/Client.cpp4
-rw-r--r--cppe/test/IceE/exceptions/Collocated.cpp3
-rw-r--r--cppe/test/IceE/exceptions/Server.cpp3
3 files changed, 7 insertions, 3 deletions
diff --git a/cppe/test/IceE/exceptions/Client.cpp b/cppe/test/IceE/exceptions/Client.cpp
index f3796fdd611..f6eba2d49c8 100644
--- a/cppe/test/IceE/exceptions/Client.cpp
+++ b/cppe/test/IceE/exceptions/Client.cpp
@@ -26,7 +26,9 @@ public:
virtual int
run(int argc, char* argv[])
{
- setCommunicator(Ice::initialize(argc, argv));
+ Ice::PropertiesPtr properties = Ice::createProperties();
+ loadConfig(properties);
+ setCommunicator(Ice::initializeWithProperties(argc, argv, properties));
ThrowerPrx allTests(const Ice::CommunicatorPtr&);
ThrowerPrx thrower = allTests(communicator());
diff --git a/cppe/test/IceE/exceptions/Collocated.cpp b/cppe/test/IceE/exceptions/Collocated.cpp
index 4ee3f17f4b4..1f7d1689dd7 100644
--- a/cppe/test/IceE/exceptions/Collocated.cpp
+++ b/cppe/test/IceE/exceptions/Collocated.cpp
@@ -31,7 +31,8 @@ public:
properties->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000");
properties->setProperty("IceE.Warn.Dispatch", "0");
- setCommunicator(Ice::initialize(argc, argv));
+ loadConfig(properties);
+ setCommunicator(Ice::initializeWithProperties(argc, argv, properties));
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = new ThrowerI(adapter);
diff --git a/cppe/test/IceE/exceptions/Server.cpp b/cppe/test/IceE/exceptions/Server.cpp
index 8d93293207e..ee2d76ca495 100644
--- a/cppe/test/IceE/exceptions/Server.cpp
+++ b/cppe/test/IceE/exceptions/Server.cpp
@@ -29,7 +29,8 @@ public:
properties->setProperty("IceE.Warn.Dispatch", "0");
properties->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000");
- setCommunicator(Ice::initialize(argc, argv));
+ loadConfig(properties);
+ setCommunicator(Ice::initializeWithProperties(argc, argv, properties));
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = new ThrowerI(adapter);