summaryrefslogtreecommitdiffstats
path: root/tests/auto/qhostinfo/tst_qhostinfo.cpp
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-09-10 12:42:58 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-09-10 12:42:58 (GMT)
commitebc0079ee5fa70564816817a2ea4aecd7ff189db (patch)
treef6c74afbaf738c0ec3ad3bbc08fa14c6dd911d19 /tests/auto/qhostinfo/tst_qhostinfo.cpp
parent44554f497d941acdc8c8e37948f77e04445f34d2 (diff)
downloadQt-ebc0079ee5fa70564816817a2ea4aecd7ff189db.zip
Qt-ebc0079ee5fa70564816817a2ea4aecd7ff189db.tar.gz
Qt-ebc0079ee5fa70564816817a2ea4aecd7ff189db.tar.bz2
tst_qinfo: Be more verbose in case of failures
Diffstat (limited to 'tests/auto/qhostinfo/tst_qhostinfo.cpp')
-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 1fd805a..5f4dfaf 100644
--- a/tests/auto/qhostinfo/tst_qhostinfo.cpp
+++ b/tests/auto/qhostinfo/tst_qhostinfo.cpp
@@ -236,6 +236,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;
@@ -351,6 +354,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(' ');