diff options
author | Jose <jose@zeroc.com> | 2018-06-01 17:41:03 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-06-01 17:41:03 +0200 |
commit | cbe92e540a7f02f0bdf93192424bd119189365b7 (patch) | |
tree | 411c50dc0ae9c669d31a940b1b4903b5deac4f12 /cpp/test/IceUtil/thread/Client.cpp | |
parent | Fixed Util.py check for binary installation directory on Windows (diff) | |
download | ice-cbe92e540a7f02f0bdf93192424bd119189365b7.tar.bz2 ice-cbe92e540a7f02f0bdf93192424bd119189365b7.tar.xz ice-cbe92e540a7f02f0bdf93192424bd119189365b7.zip |
Do not use Ice::Application for Ice testsuite
Diffstat (limited to 'cpp/test/IceUtil/thread/Client.cpp')
-rw-r--r-- | cpp/test/IceUtil/thread/Client.cpp | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/cpp/test/IceUtil/thread/Client.cpp b/cpp/test/IceUtil/thread/Client.cpp index 85f3bf1976d..23464f642d0 100644 --- a/cpp/test/IceUtil/thread/Client.cpp +++ b/cpp/test/IceUtil/thread/Client.cpp @@ -10,28 +10,27 @@ #include <IceUtil/IceUtil.h> #include <stdlib.h> -#include <TestCommon.h> - +#include <TestHelper.h> #include <TestSuite.h> using namespace std; -int -main(int, char**) +class Client : public Test::TestHelper { - try - { - initializeTestSuite(); +public: - for(list<TestBasePtr>::const_iterator p = allTests.begin(); p != allTests.end(); ++p) - { - (*p)->start(); - } - } - catch(const TestFailed& e) + void run(int, char**); +}; + +void +Client::run(int argc, char** argv) +{ + initializeTestSuite(); + + for(list<TestBasePtr>::const_iterator p = allTests.begin(); p != allTests.end(); ++p) { - cout << "test " << e.name << " failed" << endl; - return EXIT_FAILURE; + (*p)->start(); } - return EXIT_SUCCESS; } + +DEFINE_TEST(Client) |