Fix incorrectly disabled autotest

One of the IPv6 autotests was always disabled instead of being disabled
only when the system has no IPv6 support.

Change-Id: I34dffbeae6ba85a706bfeb0cc4750a4514b73a65
Reviewed-by: Peter Hartmann <phartmann@rim.com>
bb10
Shane Kearns 2013-01-08 18:53:15 +00:00 committed by The Qt Project
parent 63c68cadec
commit 7e91b5a2bc
1 changed files with 1 additions and 1 deletions

View File

@ -1147,7 +1147,7 @@ void tst_QUdpSocket::multicastLeaveAfterClose()
QFETCH(QHostAddress, groupAddress);
if (setProxy)
QSKIP("UDP Multicast does not work with proxies");
if (groupAddress.protocol() == QAbstractSocket::IPv6Protocol)
if (!QtNetworkSettings::hasIPv6() && groupAddress.protocol() == QAbstractSocket::IPv6Protocol)
QSKIP("system doesn't support ipv6!");
QUdpSocket udpSocket;