summaryrefslogtreecommitdiff
path: root/cpp/test
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test')
-rw-r--r--cpp/test/Ice/timeout/AllTests.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/test/Ice/timeout/AllTests.cpp b/cpp/test/Ice/timeout/AllTests.cpp
index 7f8b4c9c6d4..0c708db1155 100644
--- a/cpp/test/Ice/timeout/AllTests.cpp
+++ b/cpp/test/Ice/timeout/AllTests.cpp
@@ -458,14 +458,18 @@ allTests(const Ice::CommunicatorPtr& communicator)
try
{
timeout->ice_invocationTimeout(-2)->ice_ping();
+ #ifdef ICE_CPP11_MAPPING
+ timeout->ice_invocationTimeout(-2)->ice_pingAsync()->waitForCompleted();
+ #else
timeout->ice_invocationTimeout(-2)->begin_ice_ping()->waitForCompleted();
+ #endif
}
catch(const Ice::Exception&)
{
test(false);
}
- TimeoutPrx batchTimeout = timeout->ice_batchOneway();
+ TimeoutPrxPtr batchTimeout = timeout->ice_batchOneway();
batchTimeout->ice_ping();
batchTimeout->ice_ping();
batchTimeout->ice_ping();