From 7305d1875c1f56bdaf02c15866b3ee910bad5b0c Mon Sep 17 00:00:00 2001 From: Andrew O'Doherty Date: Wed, 12 Sep 2018 14:30:38 +0200 Subject: MACos fix for tst_QKnxNetIpRoutingInterface Change-Id: I41480294bd3b02f00dc53802c66f09ee56ba3e3d Reviewed-by: Karsten Heimrich --- tests/auto/qknxnetiproutinginterface/BLACKLIST | 1 - tests/auto/qknxnetiproutinginterface/tst_qknxnetiproutinginterface.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 tests/auto/qknxnetiproutinginterface/BLACKLIST 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; -- cgit v1.2.3