diff options
Diffstat (limited to 'cpp/test/Slice/structure/Client.cpp')
-rw-r--r-- | cpp/test/Slice/structure/Client.cpp | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/cpp/test/Slice/structure/Client.cpp b/cpp/test/Slice/structure/Client.cpp index 537f3185922..8aa469adb43 100644 --- a/cpp/test/Slice/structure/Client.cpp +++ b/cpp/test/Slice/structure/Client.cpp @@ -8,7 +8,7 @@ // ********************************************************************** #include <Ice/Ice.h> -#include <TestCommon.h> +#include <TestHelper.h> #include <Test.h> using namespace std; @@ -262,25 +262,18 @@ allTests(const Ice::CommunicatorPtr& communicator) cout << "ok" << endl; } -int -run(const Ice::CommunicatorPtr& communicator) +class Client : public Test::TestHelper { - allTests(communicator); +public: - return EXIT_SUCCESS; -} + void run(int, char**); +}; -int -main(int argc, char* argv[]) +void +Client::run(int argc, char** argv) { - try - { - Ice::CommunicatorHolder ich(argc, argv); - return run(ich.communicator()); - } - catch(const Ice::Exception& ex) - { - cerr << ex << endl; - return EXIT_FAILURE; - } + Ice::CommunicatorHolder ich = initialize(argc, argv); + allTests(ich.communicator()); } + +DEFINE_TEST(Client) |