summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/kernel/qhostaddress
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@digia.com>2013-12-06 13:36:03 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-06 15:06:47 +0100
commit1efe5d4b4141ef7b47c692f244178496578f15ae (patch)
tree458ba7c8fcf643464bf63313f1c827c21e9a8cc4 /tests/auto/network/kernel/qhostaddress
parentfadcb0a72b59a8c7082dc9c893b76125b8f6caf3 (diff)
WinRT: Fixed compilation of network autotests and benchmarks
Change-Id: Id689f199cfb22dce231cec36faba57ab958b1bac Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
Diffstat (limited to 'tests/auto/network/kernel/qhostaddress')
-rw-r--r--tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp b/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
index acb921b34a..c4d42206fe 100644
--- a/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
+++ b/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
@@ -339,12 +339,15 @@ void tst_QHostAddress::assignment()
address = "::1";
QCOMPARE(address, QHostAddress("::1"));
+ // WinRT does not support sockaddr_in
+#ifndef Q_OS_WINRT
QHostAddress addr("4.2.2.1");
sockaddr_in sockAddr;
sockAddr.sin_family = AF_INET;
sockAddr.sin_addr.s_addr = htonl(addr.toIPv4Address());
address.setAddress((sockaddr *)&sockAddr);
QCOMPARE(address, addr);
+#endif // !Q_OS_WINRT
}
void tst_QHostAddress::scopeId()