diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-10-26 14:50:18 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-10-26 14:50:18 +0200 |
commit | 2dd83ba68e037d7d16e06d667eb71d4f5159e90d (patch) | |
tree | bc1a6c3bd31f8b1201d759137f4ea696532837da /cpp/test/Ice/udp/AllTests.cpp | |
parent | Win32 IceBox/admin test failure (diff) | |
download | ice-2dd83ba68e037d7d16e06d667eb71d4f5159e90d.tar.bz2 ice-2dd83ba68e037d7d16e06d667eb71d4f5159e90d.tar.xz ice-2dd83ba68e037d7d16e06d667eb71d4f5159e90d.zip |
Fixed UDP IPv6 test failures on OS X
Diffstat (limited to 'cpp/test/Ice/udp/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/udp/AllTests.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cpp/test/Ice/udp/AllTests.cpp b/cpp/test/Ice/udp/AllTests.cpp index f61f213f103..9a5ab34996a 100644 --- a/cpp/test/Ice/udp/AllTests.cpp +++ b/cpp/test/Ice/udp/AllTests.cpp @@ -135,16 +135,20 @@ allTests(const CommunicatorPtr& communicator) cout << "ok" << endl; - string host; + string endpoint; if(communicator->getProperties()->getProperty("Ice.IPv6") == "1") { - host = "\"ff01::1:1\""; +#if defined(__APPLE__) + endpoint = "udp -h \"ff02::1:1\" -p 12020 --interface \"lo0\""; +#else + endpoint = "udp -h \"ff01::1:1\" -p 12020"; +#endif } else { - host = "239.255.1.1"; + endpoint = "udp -h 239.255.1.1 -p 12020"; } - base = communicator->stringToProxy("test -d:udp -h " + host + " -p 12020"); + base = communicator->stringToProxy("test -d:" + endpoint); TestIntfPrx objMcast = TestIntfPrx::uncheckedCast(base); #ifndef ICE_OS_WINRT cout << "testing udp multicast... " << flush; |