Fixed failure of tst_qhostinfo since ~15 Jan 2012
authorRohan McGovern <rohan.mcgovern@nokia.com>
Mon, 16 Jan 2012 00:18:03 +0000 (10:18 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 16 Jan 2012 00:38:36 +0000 (01:38 +0100)
This test hardcodes IP address / hostname pairs to be used for forward
and reverse lookups.

The reverse DNS entry for 62.70.27.69 has recently disappeared.  Replace
it with an IP / name pair which is (hopefully) much less likely to
disappear.

Change-Id: I03f589e1c0f4bde0b1a14e94b3c1047eeb81246e
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp

index 59f2750..6c89819 100644 (file)
@@ -356,7 +356,7 @@ void tst_QHostInfo::reverseLookup_data()
     QTest::addColumn<int>("err");
     QTest::addColumn<bool>("ipv6");
 
-    QTest::newRow("trolltech.com") << QString("62.70.27.69") << QStringList(QString("diverse.troll.no")) << 0 << false;
+    QTest::newRow("google-public-dns-a.google.com") << QString("8.8.8.8") << QStringList(QString("google-public-dns-a.google.com")) << 0 << false;
     QTest::newRow("gitorious.org") << QString("87.238.52.168") << QStringList(QString("gitorious.org")) << 0 << false;
     QTest::newRow("bogus-name") << QString("1::2::3::4") << QStringList() << 1 << true;
 }