tst_QDnsLookup: skip a unittest on Windows
See code review 496440 on Gerrit for the details. Change-Id: Ibd32a44cf7e2e07f36687cc2f0eeaf3008f64e73 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 9b40272562cb8f83efcd8a062c76edc41a9cf952)
This commit is contained in:
parent
f96365db99
commit
f6720887e6
@ -226,6 +226,9 @@ void tst_QDnsLookup::lookupLocalhost()
|
||||
|
||||
void tst_QDnsLookup::lookupRoot()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
QSKIP("This test fails on Windows as it seems to treat the lookup as a local one.");
|
||||
#else
|
||||
QDnsLookup lookup(QDnsLookup::Type::NS, u""_s);
|
||||
lookup.lookup();
|
||||
QTRY_VERIFY_WITH_TIMEOUT(lookup.isFinished(), Timeout);
|
||||
@ -237,6 +240,7 @@ void tst_QDnsLookup::lookupRoot()
|
||||
QCOMPARE(ns.name(), QString());
|
||||
QVERIFY(ns.value().endsWith(".root-servers.net"));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void tst_QDnsLookup::lookup_data()
|
||||
|
Loading…
x
Reference in New Issue
Block a user