summaryrefslogtreecommitdiff
path: root/cppe/test
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/test')
-rw-r--r--cppe/test/IceE/exceptions/AllTests.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/cppe/test/IceE/exceptions/AllTests.cpp b/cppe/test/IceE/exceptions/AllTests.cpp
index 75b2361105a..0411979a650 100644
--- a/cppe/test/IceE/exceptions/AllTests.cpp
+++ b/cppe/test/IceE/exceptions/AllTests.cpp
@@ -75,6 +75,22 @@ allTests(const Ice::CommunicatorPtr& communicator)
{
// Expected
}
+
+ communicator->getProperties()->setProperty("TestAdapter0.Endpoints", "");
+ try
+ {
+ Ice::ObjectAdapterPtr second =
+ communicator->createObjectAdapterWithEndpoints("TestAdapter0", "ssl -h foo -p 12346 -t 10000");
+ test(false);
+ }
+ catch(const Ice::AlreadyRegisteredException&)
+ {
+ // Expected.
+ }
+ //
+ // Properties must remain unaffected if an exception occurs.
+ //
+ test(communicator->getProperties()->getProperty("TestAdapter0.Endpoints") == "");
first->deactivate();
}
tprintf("ok\n");