diff options
author | Benoit Foucher <benoit@zeroc.com> | 2018-02-13 12:35:22 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2018-02-13 14:15:36 +0100 |
commit | 9358fdee4360f40451641f49fcd38b177f93c4ad (patch) | |
tree | 8ff4ec1deb284d1c4335c9ea3a57c12ee4c2953d /cpp/test/Ice/operations/BatchOneways.cpp | |
parent | Fix building PHP with Windows C++ NuGet packages (diff) | |
download | ice-9358fdee4360f40451641f49fcd38b177f93c4ad.tar.bz2 ice-9358fdee4360f40451641f49fcd38b177f93c4ad.tar.xz ice-9358fdee4360f40451641f49fcd38b177f93c4ad.zip |
Fixed UWP cross operation test failure
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(); |