summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/exceptions/AllTests.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2010-05-21 14:03:30 -0700
committerMark Spruiell <mes@zeroc.com>2010-05-21 14:03:30 -0700
commit01e3d1af5c5e19d74d391a8998495df59f6c4ce8 (patch)
treea94485661f2eb28ce4b1cb29fabf34c3fddf7c8d /cpp/test/Ice/exceptions/AllTests.cpp
parentVarious changes for 3.4.1 installers (diff)
downloadice-01e3d1af5c5e19d74d391a8998495df59f6c4ce8.tar.bz2
ice-01e3d1af5c5e19d74d391a8998495df59f6c4ce8.tar.xz
ice-01e3d1af5c5e19d74d391a8998495df59f6c4ce8.zip
bug 4733 - fixing bugs in AMD exceptions
Diffstat (limited to 'cpp/test/Ice/exceptions/AllTests.cpp')
-rw-r--r--cpp/test/Ice/exceptions/AllTests.cpp25
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;