diff options
Diffstat (limited to 'cpp/test/Ice/exceptions/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/AllTests.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp index 2c8a36ad5a4..b89384a448a 100644 --- a/cpp/test/Ice/exceptions/AllTests.cpp +++ b/cpp/test/Ice/exceptions/AllTests.cpp @@ -1395,6 +1395,31 @@ allTests(const Ice::CommunicatorPtr& communicator, bool collocated) cout << "ok" << endl; + cout << "testing asynchronous exceptions... " << flush; + + try + { + thrower->throwAfterResponse(); + } + catch(...) + { + test(false); + } + + try + { + thrower->throwAfterException(); + } + catch(const A&) + { + } + catch(...) + { + test(false); + } + + cout << "ok" << endl; + if(!collocated) { cout << "catching exact types with AMI... " << flush; |