diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-12-21 18:46:48 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-12-21 18:46:48 +0100 |
commit | 615be5a748ba8007ada416961c742aaf10628b9a (patch) | |
tree | 7164fab9471dcce76f4a704831f31f152922c5d8 /cpp/test/IceBox/configuration/Client.cpp | |
parent | Fix bug 2520: Test suite unsets ICE_CONFIG to avoid configuration conflicts (diff) | |
download | ice-615be5a748ba8007ada416961c742aaf10628b9a.tar.bz2 ice-615be5a748ba8007ada416961c742aaf10628b9a.tar.xz ice-615be5a748ba8007ada416961c742aaf10628b9a.zip |
- Fixed bug 2482
- Fixed bug 2589
- Fixed bug in Java/C# implementation of Properties clone. The values
were not cloned but shared with the clone.
- Fixed bug in IceBox where the properties admin facet was removed only
for services that had a communicator.
- Added IceBox/configuration tests.
Diffstat (limited to 'cpp/test/IceBox/configuration/Client.cpp')
-rw-r--r-- | cpp/test/IceBox/configuration/Client.cpp | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/cpp/test/IceBox/configuration/Client.cpp b/cpp/test/IceBox/configuration/Client.cpp new file mode 100644 index 00000000000..66742b16a9c --- /dev/null +++ b/cpp/test/IceBox/configuration/Client.cpp @@ -0,0 +1,64 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <Ice/Ice.h> +#include <IceUtil/IceUtil.h> +#include <TestCommon.h> +#include <Test.h> + +using namespace std; +using namespace Test; + +int +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) +{ + void allTests(const Ice::CommunicatorPtr&); + allTests(communicator); + + // + // Shutdown the IceBox server. + // + Ice::ProcessPrx::uncheckedCast(communicator->stringToProxy("DemoIceBox/admin -f Process:tcp -p 9996"))->shutdown(); + + return EXIT_SUCCESS; +} + +int +main(int argc, char* argv[]) +{ + int status; + + Ice::CommunicatorPtr communicator; + + try + { + communicator = Ice::initialize(argc, argv); + status = run(argc, argv, communicator); + } + catch(const Ice::Exception& ex) + { + cerr << ex << endl; + status = EXIT_FAILURE; + } + + if(communicator) + { + try + { + communicator->destroy(); + } + catch(const Ice::Exception& ex) + { + cerr << ex << endl; + status = EXIT_FAILURE; + } + } + + return status; +} |