1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
11 #include <TestCommon.h>
13 #include <Dispatcher.h>
18 run(int argc
, char* argv
[], const Ice::CommunicatorPtr
& communicator
)
20 void allTests(const Ice::CommunicatorPtr
&);
21 allTests(communicator
);
26 main(int argc
, char* argv
[])
29 Ice::CommunicatorPtr communicator
;
33 Ice::InitializationData initData
;
34 initData
.properties
= Ice::createProperties(argc
, argv
);
35 initData
.dispatcher
= new Dispatcher();
36 communicator
= Ice::initialize(argc
, argv
, initData
);
37 status
= run(argc
, argv
, communicator
);
39 catch(const Ice::Exception
& ex
)
42 status
= EXIT_FAILURE
;
49 communicator
->destroy();
51 catch(const Ice::Exception
& ex
)
54 status
= EXIT_FAILURE
;
57 Dispatcher::terminate();