summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
diff options
context:
space:
mode:
authorDavid Skoland <david.skoland@qt.io>2022-05-06 19:02:42 +0200
committerDavid Skoland <david.skoland@qt.io>2022-05-11 20:14:39 +0200
commit0c44dd3a334af285f21f652c9edc6dd4053233d8 (patch)
treeaae761100c9074ce544309312cefb25d7d2ad8d7 /tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
parentff0ee3d98551c128f33a289c61ff86ae3baab1da (diff)
Exclude network tests based on feature
Both tests in the conditional depend on the qnetworkinterface feature, and will fail to build if qt is configured without the networkinterface feature. Additionally, a missing system header in a test was added. Change-Id: Ife5989ee57675ebe117de2c92a4f96c7125cbab1 Pick-to: 6.3 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp')
-rw-r--r--tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp b/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
index 78f072fb54..bf39cce52f 100644
--- a/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
+++ b/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
@@ -40,7 +40,7 @@
# include <qt_windows.h>
#endif
-#ifdef Q_OS_ANDROID
+#if defined(Q_OS_ANDROID) || defined(Q_OS_WASM)
# include <netinet/in.h>
#endif