summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/allocation/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceGrid/allocation/Server.cpp')
-rw-r--r--cpp/test/IceGrid/allocation/Server.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/test/IceGrid/allocation/Server.cpp b/cpp/test/IceGrid/allocation/Server.cpp
index 070ffdee6a2..958ad7e680a 100644
--- a/cpp/test/IceGrid/allocation/Server.cpp
+++ b/cpp/test/IceGrid/allocation/Server.cpp
@@ -32,8 +32,11 @@ Server::run(int argc, char* argv[])
string name = properties->getProperty("Ice.ProgramName");
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Server");
- Ice::ObjectPtr object = new TestI(adapter, properties);
- adapter->add(object, Ice::stringToIdentity(name));
+ Ice::ObjectPtr object;
+ object = new TestI(adapter, properties);
+ adapter->add(object, Ice::stringToIdentity("allocatable"));
+ object = new TestI(adapter, properties);
+ adapter->add(object, Ice::stringToIdentity("nonallocatable"));
shutdownOnInterrupt();
try