summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/exceptions/AllTests.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2013-01-07 16:20:00 +0100
committerBenoit Foucher <benoit@zeroc.com>2013-01-07 16:20:00 +0100
commitf68bda81245047d672879dbb90e55b4446ffa71b (patch)
tree4334915e140af70af74f1d8b2a32eba6bf97f57f /cpp/test/Ice/exceptions/AllTests.cpp
parentAdded missing RemoteObserverI.java file (diff)
downloadice-f68bda81245047d672879dbb90e55b4446ffa71b.tar.bz2
ice-f68bda81245047d672879dbb90e55b4446ffa71b.tar.xz
ice-f68bda81245047d672879dbb90e55b4446ffa71b.zip
Fixed ICE-5150: assert in OutgoingAsync._finished, fixed CHANGES
Diffstat (limited to 'cpp/test/Ice/exceptions/AllTests.cpp')
-rw-r--r--cpp/test/Ice/exceptions/AllTests.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp
index d08c104e2db..d9033a0f76a 100644
--- a/cpp/test/Ice/exceptions/AllTests.cpp
+++ b/cpp/test/Ice/exceptions/AllTests.cpp
@@ -841,6 +841,9 @@ public:
catch(const Ice::UnknownLocalException&)
{
}
+ catch(const Ice::OperationNotExistException&)
+ {
+ }
catch(...)
{
test(false);
@@ -1416,6 +1419,21 @@ allTests(const Ice::CommunicatorPtr& communicator, bool collocated)
{
test(false);
}
+ try
+ {
+ thrower->throwLocalExceptionIdempotent();
+ test(false);
+ }
+ catch(const Ice::UnknownLocalException&)
+ {
+ }
+ catch(const Ice::OperationNotExistException&)
+ {
+ }
+ catch(...)
+ {
+ test(false);
+ }
cout << "ok" << endl;
@@ -1770,6 +1788,15 @@ allTests(const Ice::CommunicatorPtr& communicator, bool collocated)
cb->check();
}
+ {
+ CallbackPtr cb = new Callback;
+ Callback_Thrower_throwLocalExceptionIdempotentPtr callback =
+ newCallback_Thrower_throwLocalExceptionIdempotent(cb, &Callback::response,
+ &Callback::exception_LocalException);
+ thrower->begin_throwLocalExceptionIdempotent(callback);
+ cb->check();
+ }
+
cout << "ok" << endl;
cout << "catching unknown non-Ice exception with new AMI mapping... " << flush;