diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-07-02 16:20:34 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-07-02 16:20:34 +0200 |
commit | dc83f174fc27154c43f133a2983a90205e05ec37 (patch) | |
tree | 7b8d01980a9fe00a3718e19a89866b47c3c7b06e /cpp/test/Ice/operations/BatchOneways.cpp | |
parent | Changed Java and C# mapping to avoid generation of an {{{OperationsNC}}} inte... (diff) | |
download | ice-dc83f174fc27154c43f133a2983a90205e05ec37.tar.bz2 ice-dc83f174fc27154c43f133a2983a90205e05ec37.tar.xz ice-dc83f174fc27154c43f133a2983a90205e05ec37.zip |
Fixed bug 4145 - unexpected exception from batch request
Diffstat (limited to 'cpp/test/Ice/operations/BatchOneways.cpp')
-rw-r--r-- | cpp/test/Ice/operations/BatchOneways.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cpp/test/Ice/operations/BatchOneways.cpp b/cpp/test/Ice/operations/BatchOneways.cpp index 2ac5faab6f9..577f5ddcaef 100644 --- a/cpp/test/Ice/operations/BatchOneways.cpp +++ b/cpp/test/Ice/operations/BatchOneways.cpp @@ -63,4 +63,34 @@ batchOneways(const Test::MyClassPrx& p) } batch->ice_getConnection()->flushBatchRequests(); + + Test::MyClassPrx batch2 = Test::MyClassPrx::uncheckedCast(p->ice_batchOneway()); + + batch->ice_ping(); + batch2->ice_ping(); + batch->ice_flushBatchRequests(); + batch->ice_getConnection()->close(false); + batch->ice_ping(); + batch2->ice_ping(); + + batch->ice_ping(); + batch->ice_getConnection()->close(false); + try + { + batch->ice_ping(); + test(false); + } + catch(const Ice::CloseConnectionException&) + { + } + try + { + batch2->ice_ping(); + test(false); + } + catch(const Ice::CloseConnectionException&) + { + } + batch->ice_ping(); + batch2->ice_ping(); } |