summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtextstream/tst_qtextstream.cpp
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@trolltech.com>2009-04-01 11:24:19 (GMT)
committerPeter Hartmann <peter.hartmann@trolltech.com>2009-04-01 11:31:22 (GMT)
commit8006e8bcb427a3949b6b4eec80b65bb58b5fdb8a (patch)
tree70b70c8041b32633c402853e00a735051485fd02 /tests/auto/qtextstream/tst_qtextstream.cpp
parent7ff89f9ee6d7c11a42300299cb699185dc020379 (diff)
downloadQt-8006e8bcb427a3949b6b4eec80b65bb58b5fdb8a.zip
Qt-8006e8bcb427a3949b6b4eec80b65bb58b5fdb8a.tar.gz
Qt-8006e8bcb427a3949b6b4eec80b65bb58b5fdb8a.tar.bz2
QTextStream autotest: do not test against "imap.troll.no"
... but test against the test server. Reviewed-by: ogoffart
Diffstat (limited to 'tests/auto/qtextstream/tst_qtextstream.cpp')
-rw-r--r--tests/auto/qtextstream/tst_qtextstream.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qtextstream/tst_qtextstream.cpp b/tests/auto/qtextstream/tst_qtextstream.cpp
index a60433a..5a6cce8 100644
--- a/tests/auto/qtextstream/tst_qtextstream.cpp
+++ b/tests/auto/qtextstream/tst_qtextstream.cpp
@@ -60,6 +60,8 @@
#include <QTextCodec>
#include <QProcess>
+#include "../network-settings.h"
+
static const char *TestFileName = "testfile";
Q_DECLARE_METATYPE(qlonglong)
@@ -1229,7 +1231,7 @@ void tst_QTextStream::stillOpenWhenAtEnd()
QSKIP("Qt/CE: Cannot test network on emulator", SkipAll);
#endif
QTcpSocket socket;
- socket.connectToHost("imap.troll.no", 143);
+ socket.connectToHost(QtNetworkSettings::serverName(), 143);
QVERIFY(socket.waitForReadyRead(5000));
QTextStream stream2(&socket);