// // Copyright (c) ZeroC, Inc. All rights reserved. // #include #include #include using namespace std; using namespace Ice; using namespace Test; class Control final : public Test::TestHelper { public: void run(int, char**) override; }; void Control::run(int argc, char** argv) { Ice::CommunicatorHolder communicator = initialize(argc, argv); if(argc < 2) { ostringstream os; os << "Usage: " << argv[0] << " proxy"; throw invalid_argument(os.str()); } auto control = uncheckedCast(communicator->stringToProxy(argv[1])); control->stop(); } DEFINE_TEST(Control)