summaryrefslogtreecommitdiff
path: root/cpp/test/Slice/structure/Client.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-06-01 17:41:03 +0200
committerJose <jose@zeroc.com>2018-06-01 17:41:03 +0200
commitcbe92e540a7f02f0bdf93192424bd119189365b7 (patch)
tree411c50dc0ae9c669d31a940b1b4903b5deac4f12 /cpp/test/Slice/structure/Client.cpp
parentFixed Util.py check for binary installation directory on Windows (diff)
downloadice-cbe92e540a7f02f0bdf93192424bd119189365b7.tar.bz2
ice-cbe92e540a7f02f0bdf93192424bd119189365b7.tar.xz
ice-cbe92e540a7f02f0bdf93192424bd119189365b7.zip
Do not use Ice::Application for Ice testsuite
Diffstat (limited to 'cpp/test/Slice/structure/Client.cpp')
-rw-r--r--cpp/test/Slice/structure/Client.cpp29
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)