summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorØystein Heskestad <oystein.heskestad@qt.io>2022-07-08 16:15:31 +0200
committerØystein Heskestad <oystein.heskestad@qt.io>2022-07-14 08:27:22 +0000
commita0ce6b44610ac61021c87761a9014ba650bfc04d (patch)
tree74d225dea6f40900353560051ee5b94cd453e926 /tests
parent3a7be416077722b865f874ba0545cfd3db0591fc (diff)
Disable unit testing setting up QTcpServer on special Apple interfaces
The iBridge interface is used for the keyboard touch bar, and the Apple Wireless Direct Link interfaces are used by Apple for various purposes. Setting up a server on these interfaces does not work. Only the tst_QTcpServer::linkLocal unit test on macOS is affected by this change. Fixes: QTBUG-103892 Change-Id: I29701ce51d5e40dff6c59547a8639c1fba330d36 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 1c563035c7b66349018898cb880ffef8c002a545)
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/network/socket/qtcpserver/tst_qtcpserver.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/network/socket/qtcpserver/tst_qtcpserver.cpp b/tests/auto/network/socket/qtcpserver/tst_qtcpserver.cpp
index 52c7375a80..adf3781c50 100644
--- a/tests/auto/network/socket/qtcpserver/tst_qtcpserver.cpp
+++ b/tests/auto/network/socket/qtcpserver/tst_qtcpserver.cpp
@@ -925,6 +925,12 @@ void tst_QTcpServer::linkLocal()
// (we don't know why)
if (iface.name().startsWith("utun"))
continue;
+ // Do not use the iBridge interfae
+ if (iface.hardwareAddress() == "AC:DE:48:00:11:22")
+ continue;
+ // Do no use the Apple Wireless Direct Link interfaces
+ if (iface.name().startsWith("awdl"))
+ continue;
#endif
foreach (QNetworkAddressEntry addressEntry, iface.addressEntries()) {
QHostAddress addr = addressEntry.ip();