summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/udp/AllTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/udp/AllTests.cpp')
-rw-r--r--cpp/test/Ice/udp/AllTests.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/cpp/test/Ice/udp/AllTests.cpp b/cpp/test/Ice/udp/AllTests.cpp
index c7c8dc1ce1d..cbe74f201f6 100644
--- a/cpp/test/Ice/udp/AllTests.cpp
+++ b/cpp/test/Ice/udp/AllTests.cpp
@@ -154,7 +154,22 @@ allTests(Test::TestHelper* helper)
while(nRetry-- > 0)
{
replyI->reset();
- objMcast->ping(reply);
+ try
+ {
+ objMcast->ping(reply);
+ }
+ catch(const Ice::SocketException&)
+ {
+ // Multicast IPv6 not supported on the platform. This occurs for example
+ // on AIX PVP clould VMs.
+ if(communicator->getProperties()->getProperty("Ice.IPv6") == "1")
+ {
+ cout << "(not supported) ";
+ ret = true;
+ break;
+ }
+ throw;
+ }
ret = replyI->waitReply(5, IceUtil::Time::seconds(2));
if(ret)
{
@@ -175,7 +190,6 @@ allTests(Test::TestHelper* helper)
cout << "testing udp bi-dir connection... " << flush;
obj->ice_getConnection()->setAdapter(adapter);
- objMcast->ice_getConnection()->setAdapter(adapter);
nRetry = 5;
while(nRetry-- > 0)
{
@@ -205,6 +219,7 @@ allTests(Test::TestHelper* helper)
//
// cout << "testing udp bi-dir connection... " << flush;
// nRetry = 5;
+// objMcast->ice_getConnection()->setAdapter(adapter);
// while(nRetry-- > 0)
// {
// replyI->reset();