diff options
author | Benoit Foucher <benoit@zeroc.com> | 2013-01-07 16:20:00 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2013-01-07 16:20:00 +0100 |
commit | f68bda81245047d672879dbb90e55b4446ffa71b (patch) | |
tree | 4334915e140af70af74f1d8b2a32eba6bf97f57f /cpp/test/Ice/exceptions/AllTests.cpp | |
parent | Added missing RemoteObserverI.java file (diff) | |
download | ice-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.cpp | 27 |
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; |