diff options
Diffstat (limited to 'cpp/test/IceGrid/allocation/Server.cpp')
-rw-r--r-- | cpp/test/IceGrid/allocation/Server.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/cpp/test/IceGrid/allocation/Server.cpp b/cpp/test/IceGrid/allocation/Server.cpp index 958ad7e680a..daaa34fb6b3 100644 --- a/cpp/test/IceGrid/allocation/Server.cpp +++ b/cpp/test/IceGrid/allocation/Server.cpp @@ -32,11 +32,16 @@ Server::run(int argc, char* argv[]) string name = properties->getProperty("Ice.ProgramName"); Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Server"); - 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")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("nonallocatable")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable1")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable2")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable3")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable4")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable11")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable21")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable31")); + adapter->add(new TestI(adapter, properties), Ice::stringToIdentity("allocatable41")); shutdownOnInterrupt(); try |