diff options
Diffstat (limited to 'cpp/test/Ice/operations/BatchOneways.cpp')
-rw-r--r-- | cpp/test/Ice/operations/BatchOneways.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/test/Ice/operations/BatchOneways.cpp b/cpp/test/Ice/operations/BatchOneways.cpp index 38cdca817de..0854573df38 100644 --- a/cpp/test/Ice/operations/BatchOneways.cpp +++ b/cpp/test/Ice/operations/BatchOneways.cpp @@ -199,7 +199,16 @@ batchOneways(const Test::MyClassPrxPtr& p) ic->destroy(); } - if(batch->ice_getConnection() && + bool supportsCompress = true; + try + { + supportsCompress = p->supportsCompress(); + } + catch(const Ice::OperationNotExistException&) + { + } + + if(supportsCompress && batch->ice_getConnection() && p->ice_getCommunicator()->getProperties()->getProperty("Ice.Override.Compress") == "") { Ice::ObjectPrxPtr prx = batch->ice_getConnection()->createProxy(batch->ice_getIdentity())->ice_batchOneway(); |