diff options
Diffstat (limited to 'cpp/test/Ice/adapterDeactivation/Client.cpp')
-rw-r--r-- | cpp/test/Ice/adapterDeactivation/Client.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/cpp/test/Ice/adapterDeactivation/Client.cpp b/cpp/test/Ice/adapterDeactivation/Client.cpp new file mode 100644 index 00000000000..a0420bdcf95 --- /dev/null +++ b/cpp/test/Ice/adapterDeactivation/Client.cpp @@ -0,0 +1,50 @@ +// ********************************************************************** +// +// Copyright (c) 2002 +// Mutable Realms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include <Ice/Application.h> +#include <TestCommon.h> +#include <Test.h> + +using namespace std; +using namespace Ice; + +class TestServer : public Application +{ +public: + + virtual int run(int, char*[]); +}; + +int +main(int argc, char* argv[]) +{ + TestServer app; + return app.main(argc, argv); +} + +int +TestServer::run(int argc, char* argv[]) +{ + TestPrx allTests(const CommunicatorPtr&); + TestPrx obj = allTests(communicator()); + + cout << "testing whether server is gone... " << flush; + try + { + obj->ice_ping(); + test(false); + } + catch(const LocalException&) + { + cout << "ok" << endl; + } + + return EXIT_SUCCESS; +} |