summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-12-02 11:10:02 +0000
committerQt by Nokia <qt-info@nokia.com>2011-12-06 11:57:11 +0100
commit7abd5d950d2aea8c0f8b25871819dd65e49a15c3 (patch)
tree05a02542871a4d4cf0769d645572e5c4701d0410 /tests
parent4d98b83c170ac6fb90e3e23fa1480556d0505dfd (diff)
Skip untestable interfaces in QTcpSocket::bind autotest
bind() test failed if there is an autoconfigured IPv4 address. e.g. bluetooth adaptor that is not attached to a network. Or WLAN adaptor in peer-peer mode. - solved by skipping the autoconfigured IPv4 addresses in the same way as IPv6 addresses are already skipped bind() test fails for proxy - skipped, QTBUG-22964 created Change-Id: I9a799ae8db421783f474e97cf876d6e265516397 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
index cb5b3df9da..98ce112a9e 100644
--- a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
+++ b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
@@ -489,7 +489,8 @@ void tst_QTcpSocket::bind_data()
continue;
foreach (const QNetworkAddressEntry &entry, interface.addressEntries()) {
- if (entry.ip().isInSubnet(QHostAddress::parseSubnet("fe80::/10")))
+ if (entry.ip().isInSubnet(QHostAddress::parseSubnet("fe80::/10"))
+ || entry.ip().isInSubnet(QHostAddress::parseSubnet("169.254/16")))
continue; // link-local bind will fail, at least on Linux, so skip it.
QString ip(entry.ip().toString());
@@ -511,6 +512,9 @@ void tst_QTcpSocket::bind_data()
void tst_QTcpSocket::bind()
{
+ QFETCH_GLOBAL(bool, setProxy);
+ if (setProxy)
+ QSKIP("QTBUG-22964");
QFETCH(QString, stringAddr);
QFETCH(bool, successExpected);
QFETCH(QString, stringExpectedLocalAddress);