diff options
author | Andrew O'Doherty <andrew.odoherty@qt.io> | 2018-09-12 14:30:38 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2018-09-14 09:25:44 +0000 |
commit | 7305d1875c1f56bdaf02c15866b3ee910bad5b0c (patch) | |
tree | beb8028bdaf4cadbf04d516b53b81c2b02a2e083 | |
parent | f54cd5076865f392477fe9b66a54764e1f514c82 (diff) |
MACos fix for tst_QKnxNetIpRoutingInterface
Change-Id: I41480294bd3b02f00dc53802c66f09ee56ba3e3d
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r-- | tests/auto/qknxnetiproutinginterface/BLACKLIST | 1 | ||||
-rw-r--r-- | tests/auto/qknxnetiproutinginterface/tst_qknxnetiproutinginterface.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qknxnetiproutinginterface/BLACKLIST b/tests/auto/qknxnetiproutinginterface/BLACKLIST deleted file mode 100644 index fc78da2..0000000 --- a/tests/auto/qknxnetiproutinginterface/BLACKLIST +++ /dev/null @@ -1 +0,0 @@ -osx diff --git a/tests/auto/qknxnetiproutinginterface/tst_qknxnetiproutinginterface.cpp b/tests/auto/qknxnetiproutinginterface/tst_qknxnetiproutinginterface.cpp index 420ae6f..4c3509b 100644 --- a/tests/auto/qknxnetiproutinginterface/tst_qknxnetiproutinginterface.cpp +++ b/tests/auto/qknxnetiproutinginterface/tst_qknxnetiproutinginterface.cpp @@ -91,6 +91,9 @@ tst_QKnxNetIpRoutingInterface::tst_QKnxNetIpRoutingInterface() const auto interfaces = QNetworkInterface::allInterfaces(); QNetworkInterface foundIface; for (const auto &iface : interfaces) { + if (iface.flags() != QNetworkInterface::IsLoopBack) + continue; + if (iface.addressEntries().isEmpty()) continue; |