diff options
Diffstat (limited to 'cpp/test/Ice/exceptions/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/AllTests.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp index 7112e8f985a..bd2b65646f1 100644 --- a/cpp/test/Ice/exceptions/AllTests.cpp +++ b/cpp/test/Ice/exceptions/AllTests.cpp @@ -50,26 +50,26 @@ allTests(const Ice::CommunicatorPtr& communicator, bool collocated) { cout << "testing stringToProxy... " << flush; string ref; -
- Ice::PropertiesPtr properties = communicator->getProperties();
-
- string protocol = properties->getProperty("Ice.Protocol");
- string secure;
-
- if (protocol.empty())
- {
- protocol = "tcp";
- }
-
- if (protocol.compare("ssl") == 0)
- {
- secure = " -s ";
- }
-
- string endpts = protocol + " -p 12345 -t 2000";
-
- ref = "thrower" + secure + ":" + endpts;
-
+ + Ice::PropertiesPtr properties = communicator->getProperties(); + + string protocol = properties->getProperty("Ice.Protocol"); + string secure; + + if (protocol.empty()) + { + protocol = "tcp"; + } + + if (protocol.compare("ssl") == 0) + { + secure = " -s "; + } + + string endpts = protocol + " -p 12345 -t 2000"; + + ref = "thrower" + secure + ":" + endpts; + Ice::ObjectPrx base = communicator->stringToProxy(ref); test(base); cout << "ok" << endl; |