summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/adapterDeactivation/AllTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/adapterDeactivation/AllTests.cpp')
-rw-r--r--cpp/test/Ice/adapterDeactivation/AllTests.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/cpp/test/Ice/adapterDeactivation/AllTests.cpp b/cpp/test/Ice/adapterDeactivation/AllTests.cpp
index e449ad33f54..4b39523946a 100644
--- a/cpp/test/Ice/adapterDeactivation/AllTests.cpp
+++ b/cpp/test/Ice/adapterDeactivation/AllTests.cpp
@@ -31,23 +31,23 @@ allTests(const CommunicatorPtr& communicator)
{
cout << "creating/destroying/recreating object adapter... " << flush;
- ObjectAdapterPtr adapter =
- communicator->createObjectAdapterWithEndpoints("TransientTestAdapter", "default -p 9999");
- try
- {
- communicator->createObjectAdapterWithEndpoints("TransientTestAdapter", "default -p 9998");
- test(false);
- }
- catch(const AlreadyRegisteredException&)
- {
- }
- adapter->destroy();
+ ObjectAdapterPtr adapter =
+ communicator->createObjectAdapterWithEndpoints("TransientTestAdapter", "default -p 9999");
+ try
+ {
+ communicator->createObjectAdapterWithEndpoints("TransientTestAdapter", "default -p 9998");
+ test(false);
+ }
+ catch(const AlreadyRegisteredException&)
+ {
+ }
+ adapter->destroy();
- //
- // Use a different port than the first adapter to avoid an "address already in use" error.
- //
- adapter = communicator->createObjectAdapterWithEndpoints("TransientTestAdapter", "default -p 9998");
- adapter->destroy();
+ //
+ // Use a different port than the first adapter to avoid an "address already in use" error.
+ //
+ adapter = communicator->createObjectAdapterWithEndpoints("TransientTestAdapter", "default -p 9998");
+ adapter->destroy();
cout << "ok" << endl;
}
@@ -62,12 +62,12 @@ allTests(const CommunicatorPtr& communicator)
cout << "testing whether server is gone... " << flush;
try
{
- obj->ice_ping();
- test(false);
+ obj->ice_ping();
+ test(false);
}
catch(const LocalException&)
{
- cout << "ok" << endl;
+ cout << "ok" << endl;
}
return obj;