From ebc0079ee5fa70564816817a2ea4aecd7ff189db Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Thu, 10 Sep 2009 14:42:58 +0200 Subject: [PATCH] tst_qinfo: Be more verbose in case of failures --- tests/auto/qhostinfo/tst_qhostinfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/auto/qhostinfo/tst_qhostinfo.cpp b/tests/auto/qhostinfo/tst_qhostinfo.cpp index 1fd805acff..5f4dfaf366 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(' '); -- 2.11.4.GIT