summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2012-10-22 09:29:37 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-30 08:39:40 (GMT)
commit4555321da9b7cd7343bf4f2782c217f077212e84 (patch)
tree34510fea7097f99fceb70d7bd2cfddd81512e9d3 /tests
parent6c00d99161fba59e6fa242d8fdba583b789ee5b2 (diff)
downloadQt-4555321da9b7cd7343bf4f2782c217f077212e84.zip
Qt-4555321da9b7cd7343bf4f2782c217f077212e84.tar.gz
Qt-4555321da9b7cd7343bf4f2782c217f077212e84.tar.bz2
Fix tst_qhostinfo test case for Digia CI infra.
Microsoft DNS server used in Digia hosted Qt-Project CI system, returns 'Server failed' error for hostname ending with dot. Because the purpose of this autotests is to test 'notfound' use case, it should is ok to use also 'invalid.invalid' hostname in these DNS queries. The similar chang in Qt5: https://codereview.qt-project.org/36871 In addition 62.70.27.69 IP address is not mapped to trolltech.com anymore. Update test to use qt-project name and IP instead. Change-Id: I11b0233109a6dc8b3de8e9783a287ce106436711 Reviewed-by: Samuli Piippo <samuli.piippo@digia.com> Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qhostinfo/tst_qhostinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qhostinfo/tst_qhostinfo.cpp b/tests/auto/qhostinfo/tst_qhostinfo.cpp
index 2d63b81..424665a 100644
--- a/tests/auto/qhostinfo/tst_qhostinfo.cpp
+++ b/tests/auto/qhostinfo/tst_qhostinfo.cpp
@@ -281,7 +281,7 @@ void tst_QHostInfo::lookupIPv4_data()
QTest::newRow("multiple_ip4") << "multi.dev.troll.no" << "1.2.3.4 1.2.3.5 10.3.3.31" << int(QHostInfo::NoError);
QTest::newRow("literal_ip4") << lupinellaIp << lupinellaIp << int(QHostInfo::NoError);
- QTest::newRow("notfound") << "this-name-does-not-exist-hopefully." << "" << int(QHostInfo::HostNotFound);
+ QTest::newRow("notfound") << "this-name-does-not-exist-hopefully.invalid" << "" << int(QHostInfo::HostNotFound);
QTest::newRow("idn-ace") << "xn--alqualond-34a.troll.no" << "10.3.3.55" << int(QHostInfo::NoError);
QTest::newRow("idn-unicode") << QString::fromLatin1("alqualond\353.troll.no") << "10.3.3.55" << int(QHostInfo::NoError);
@@ -369,7 +369,7 @@ void tst_QHostInfo::reverseLookup_data()
QTest::addColumn<QStringList>("hostNames");
QTest::addColumn<int>("err");
- QTest::newRow("trolltech.com") << QString("62.70.27.69") << QStringList(QString("diverse.troll.no")) << 0;
+ QTest::newRow("qt-project.org") << QString("87.238.53.172") << QStringList(QString("tufsla.qtproject.c.bitbit.net")) << 0;
// ### Use internal DNS instead. Discussed with Andreas.
//QTest::newRow("classical.hexago.com") << QString("2001:5c0:0:2::24") << QStringList(QString("classical.hexago.com")) << 0;