diff options
Diffstat (limited to 'cpp/test/IceGrid/distribution/Server.cpp')
-rw-r--r-- | cpp/test/IceGrid/distribution/Server.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/cpp/test/IceGrid/distribution/Server.cpp b/cpp/test/IceGrid/distribution/Server.cpp deleted file mode 100644 index b1335eb7399..00000000000 --- a/cpp/test/IceGrid/distribution/Server.cpp +++ /dev/null @@ -1,38 +0,0 @@ -// -// Copyright (c) ZeroC, Inc. All rights reserved. -// - -#include <Ice/Ice.h> -#include <TestI.h> -#include <TestHelper.h> - -using namespace std; - -class Server : public Test::TestHelper -{ -public: - - void run(int, char**); -}; - -void -Server::run(int argc, char** argv) -{ - Ice::CommunicatorHolder communicator = initialize(argc, argv); - Ice::PropertiesPtr properties = communicator->getProperties(); - string name = properties->getProperty("Ice.ProgramName"); - Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("Server"); - Ice::ObjectPtr object = new TestI(properties); - adapter->add(object, Ice::stringToIdentity(name)); - - try - { - adapter->activate(); - } - catch(const Ice::ObjectAdapterDeactivatedException&) - { - } - communicator->waitForShutdown(); -} - -DEFINE_TEST(Server) |