summaryrefslogtreecommitdiffstats
path: root/tests/auto/qhostinfo
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qhostinfo')
-rw-r--r--tests/auto/qhostinfo/tst_qhostinfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qhostinfo/tst_qhostinfo.cpp b/tests/auto/qhostinfo/tst_qhostinfo.cpp
index ac6adf7..4d63e10 100644
--- a/tests/auto/qhostinfo/tst_qhostinfo.cpp
+++ b/tests/auto/qhostinfo/tst_qhostinfo.cpp
@@ -247,6 +247,9 @@ void tst_QHostInfo::lookupIPv4()
QVERIFY(!QTestEventLoop::instance().timeout());
QVERIFY(lookupDone);
+ if ((int)lookupResults.error() != (int)err) {
+ qWarning() << hostname << "=>" << lookupResults.errorString();
+ }
QCOMPARE((int)lookupResults.error(), (int)err);
QStringList tmp;
@@ -362,6 +365,9 @@ void tst_QHostInfo::blockingLookup()
tmp.append(hostInfo.addresses().at(i).toString());
tmp.sort();
+ if ((int)hostInfo.error() != (int)err) {
+ qWarning() << hostname << "=>" << lookupResults.errorString();
+ }
QCOMPARE((int)hostInfo.error(), (int)err);
QStringList expected = addresses.split(' ');