diff options
author | Benoit Foucher <benoit@zeroc.com> | 2008-06-06 11:39:41 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2008-06-06 11:39:41 +0200 |
commit | 966061fcb0e2ec4d5d7ed9c6c280eefb27209da7 (patch) | |
tree | 078246631fb864d9e908108d69917b18c6303c16 /cppe/test/IceE/faultTolerance/Client.cpp | |
parent | Removed SL code (diff) | |
download | ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.tar.bz2 ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.tar.xz ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.zip |
Removed Ice-E
Diffstat (limited to 'cppe/test/IceE/faultTolerance/Client.cpp')
-rw-r--r-- | cppe/test/IceE/faultTolerance/Client.cpp | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/cppe/test/IceE/faultTolerance/Client.cpp b/cppe/test/IceE/faultTolerance/Client.cpp deleted file mode 100644 index c977fe70e8d..00000000000 --- a/cppe/test/IceE/faultTolerance/Client.cpp +++ /dev/null @@ -1,84 +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 <TestApplication.h> -#include <Test.h> - -using namespace std; - -void -usage(const char* n) -{ - tprintf("Usage: %s port...\n", n); -} - -class FaultTestApplication : public TestApplication -{ -public: - - FaultTestApplication() : - TestApplication("fault client") - { - } - - virtual int - run(int argc, char* argv[]) - { - Ice::InitializationData initData; - initData.properties = Ice::createProperties(); - loadConfig(initData.properties); - - // - // This test aborts servers, so we don't want warnings. - // - setCommunicator(Ice::initialize(argc, argv, initData)); - communicator()->getProperties()->setProperty("Ice.Warn.Connections", "0"); - - vector<int> ports; - for(int i = 1; i < argc; ++i) - { - if(argv[i][0] == '-') - { - tprintf("%s: unknown option `%s'\n", argv[0], argv[i]); - usage(argv[0]); - return EXIT_FAILURE; - } - - ports.push_back(atoi(argv[i])); - } - - if(ports.empty()) - { - tprintf("%s: no ports specified\n", argv[0]); - usage(argv[0]); - return EXIT_FAILURE; - } - - try - { - void allTests(const Ice::CommunicatorPtr&, const vector<int>&); - allTests(communicator(), ports); - } - catch(const Ice::Exception& ex) - { - tprintf("%s\n", ex.toString().c_str()); - test(false); - } - - return EXIT_SUCCESS; - } -}; - -int -main(int argc, char** argv) -{ - FaultTestApplication app; - return app.main(argc, argv); -} |