diff options
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; |