For people running this test who are burdened with a broken DNS server and for whom the check added in the previous commit fails, skipping the test. Incidentally, this is useful for developing QDnsLookup itself, because some otherwise-reasonable servers are known to fail for some queries. For example, dnsmasq doesn't like queries of type ANY: SKIP : tst_QDnsLookup::lookup(any-a-single) Server refused or was unable to answer query; a-single type ANY: Server failure SKIP : tst_QDnsLookup::lookup(any-a-plus-aaaa) Server refused or was unable to answer query; a-plus-aaaa type ANY: Server failure SKIP : tst_QDnsLookup::lookup(any-multi) Server refused or was unable to answer query; multi type ANY: Server failure Now I can get it to pass with QTEST_DNS_SERVER='[2001:4860:4860::8888]': PASS : tst_QDnsLookup::lookup(any-a-single) PASS : tst_QDnsLookup::lookup(any-a-plus-aaaa) PASS : tst_QDnsLookup::lookup(any-multi) Note for the future: setting a non-default server may exercise different code paths inside QDnsLookup, so this is not a replacement for having proper DNS servers in the CI. Fixes: QTBUG-129335 Change-Id: I81dcd4834972efa84c9ffffdd8aaafb68f20560b Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 10fea78bdcad2086c980fa1c1bbcd5bb543e4366) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> |
||
|---|---|---|
| .. | ||
| auto | ||
| baseline | ||
| benchmarks | ||
| global | ||
| libfuzzer | ||
| manual | ||
| shared | ||
| testserver | ||
| CMakeLists.txt | ||
| README | ||
README
This directory contains autotests and benchmarks based on Qt Test. In order
to run the autotests reliably, you need to configure a desktop to match the
test environment that these tests are written for.
Linux X11:
* The user must be logged in to an active desktop; you can't run the
autotests without a valid DISPLAY that allows X11 connections.
* The tests are run against a KDE3 or KDE4 desktop.
* Window manager uses "click to focus", and not "focus follows mouse". Many
tests move the mouse cursor around and expect this to not affect focus
and activation.
* Disable "click to activate", i.e., when a window is opened, the window
manager should automatically activate it (give it input focus) and not
wait for the user to click the window.