Fix QDnsLookup autotest failure in CI environment
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Mon, 12 Mar 2012 18:46:21 +0000 (18:46 +0000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Mar 2012 17:05:05 +0000 (18:05 +0100)
commit8a811865ab03bc7e30c8f6f52c0a61c5ae76191d
tree58473d1c8683abd010b078c3c972c17b83dfe53e
parent7046188bc6ec56048070f5dc0397d7b3dbbf40b3
Fix QDnsLookup autotest failure in CI environment

The DNS server can legitimately include NS and A records for
the authoritative name server in addition to the DNS records
that were requested.
These are now ignored when checking the reply (we only check
results that match the query, rather than failing if a result
is for a different host name than the query).

Task-number: QTBUG-24698
Change-Id: I327f31d58cdca50c7df6b32b275d7f28b56405f0
Reviewed-by: Jeremy Lainé <jeremy.laine@m4x.org>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
tests/auto/network/kernel/qdnslookup/tst_qdnslookup.cpp