From 615be5a748ba8007ada416961c742aaf10628b9a Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Fri, 21 Dec 2007 18:46:48 +0100 Subject: - 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. --- cpp/test/IceBox/configuration/Client.cpp | 64 ++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 cpp/test/IceBox/configuration/Client.cpp (limited to 'cpp/test/IceBox/configuration/Client.cpp') 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 +#include +#include +#include + +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; +} -- cgit v1.2.3