diff options
Diffstat (limited to 'cpp/test/Ice/defaultServant/Client.cpp')
-rw-r--r-- | cpp/test/Ice/defaultServant/Client.cpp | 39 |
1 files changed, 13 insertions, 26 deletions
diff --git a/cpp/test/Ice/defaultServant/Client.cpp b/cpp/test/Ice/defaultServant/Client.cpp index 18e4fd6fecf..50558f8f63f 100644 --- a/cpp/test/Ice/defaultServant/Client.cpp +++ b/cpp/test/Ice/defaultServant/Client.cpp @@ -8,38 +8,25 @@ // ********************************************************************** #include <Ice/Ice.h> -#include <TestCommon.h> +#include <TestHelper.h> #include <Test.h> using namespace std; using namespace Test; -DEFINE_TEST("client") - -int -run(int, char**, const Ice::CommunicatorPtr& communicator) +class Client : public Test::TestHelper { - void allTests(const Ice::CommunicatorPtr&); - allTests(communicator); - return EXIT_SUCCESS; -} +public: -int -main(int argc, char* argv[]) + void run(int, char**); +}; + +void +Client::run(int argc, char** argv) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(false); - Ice::registerIceWS(true); -#endif - try - { - Ice::InitializationData initData = getTestInitData(argc, argv); - Ice::CommunicatorHolder ich(argc, argv, initData); - return run(argc, argv, ich.communicator()); - } - catch(const Ice::Exception& ex) - { - cerr << ex << endl; - return EXIT_FAILURE; - } + Ice::CommunicatorHolder communicator = initialize(argc, argv); + void allTests(Test::TestHelper*); + allTests(this); } + +DEFINE_TEST(Client) |