diff options
Diffstat (limited to 'cppe/test/IceE/retry/Client.cpp')
-rw-r--r-- | cppe/test/IceE/retry/Client.cpp | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/cppe/test/IceE/retry/Client.cpp b/cppe/test/IceE/retry/Client.cpp deleted file mode 100644 index c3a6b08892a..00000000000 --- a/cppe/test/IceE/retry/Client.cpp +++ /dev/null @@ -1,74 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. -// -// This copy of Ice-E is licensed to you under the terms described in the -// ICEE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <IceE/IceE.h> -#include <TestCommon.h> -#include <TestApplication.h> -#include <Test.h> - -using namespace std; - -class RetryTestApplication : public TestApplication -{ -public: - - RetryTestApplication() : - TestApplication("retry client") - { - } - - virtual int - run(int argc, char* argv[]) - { - Ice::InitializationData initData; - initData.properties = Ice::createProperties(); - //initData.properties->setProperty("Ice.Trace.Network", "5"); - //initData.properties->setProperty("Ice.Trace.Protocol", "5"); - - loadConfig(initData.properties); - - // - // For this test, we want to disable retries. - // - initData.properties->setProperty("Ice.RetryIntervals", "-1"); - - initData.logger = getLogger(); - setCommunicator(Ice::initialize(argc, argv, initData)); - - // - // This test kills connections, so we don't want warnings. - // - communicator()->getProperties()->setProperty("Ice.Warn.Connections", "0"); - - Test::RetryPrx allTests(const Ice::CommunicatorPtr&); - Test::RetryPrx retry = allTests(communicator()); - retry->shutdown(); - return EXIT_SUCCESS; - } -}; - -#ifdef _WIN32_WCE - -int WINAPI -WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) -{ - RetryTestApplication app; - return app.main(hInstance); -} - -#else - -int -main(int argc, char** argv) -{ - RetryTestApplication app; - return app.main(argc, argv); -} - -#endif |