diff options
Diffstat (limited to 'tests/auto/qiodevice/tst_qiodevice.cpp')
-rw-r--r-- | tests/auto/qiodevice/tst_qiodevice.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/auto/qiodevice/tst_qiodevice.cpp b/tests/auto/qiodevice/tst_qiodevice.cpp index 03a0665..38eac55 100644 --- a/tests/auto/qiodevice/tst_qiodevice.cpp +++ b/tests/auto/qiodevice/tst_qiodevice.cpp @@ -49,6 +49,10 @@ //TESTED_CLASS= //TESTED_FILES= +#ifdef Q_OS_SYMBIAN +#define SRCDIR "" +#endif + class tst_QIODevice : public QObject { Q_OBJECT @@ -94,11 +98,11 @@ void tst_QIODevice::getSetCheck() tst_QIODevice::tst_QIODevice() { + Q_SET_DEFAULT_IAP } tst_QIODevice::~tst_QIODevice() { - } void tst_QIODevice::init() @@ -120,7 +124,7 @@ void tst_QIODevice::constructing_QTcpSocket() QVERIFY(!device->isOpen()); - socket.connectToHost("imap.troll.no", 143); + socket.connectToHost(QtNetworkSettings::serverName(), 21); QVERIFY(socket.waitForConnected(5000)); QVERIFY(device->isOpen()); @@ -136,6 +140,7 @@ void tst_QIODevice::constructing_QTcpSocket() socket.close(); socket.connectToHost("imap.troll.no", 143); QVERIFY(socket.waitForConnected(5000)); + QVERIFY(device->isOpen()); while (!device->canReadLine()) QVERIFY(device->waitForReadyRead(5000)); |