summaryrefslogtreecommitdiffstats
path: root/tests/auto/qnativesocketengine
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-01-06 03:39:14 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2011-01-10 00:36:06 (GMT)
commit026a24855ec16626ab101007719a836f5a4e3c47 (patch)
tree73331d0c48023ed9f5489735443d2b56b3d67736 /tests/auto/qnativesocketengine
parente6286c54bd66c2db06687127fea69fcc398ffbde (diff)
downloadQt-026a24855ec16626ab101007719a836f5a4e3c47.zip
Qt-026a24855ec16626ab101007719a836f5a4e3c47.tar.gz
Qt-026a24855ec16626ab101007719a836f5a4e3c47.tar.bz2
network tests: make IMAP, FTP testdata more flexible.
Move all hardcoded IMAP/FTP fixtures into network-settings.h. Make it work with new and old network test server. Reviewed-by: Markus Goetz Task: QTBUG-15114
Diffstat (limited to 'tests/auto/qnativesocketengine')
-rw-r--r--tests/auto/qnativesocketengine/tst_qnativesocketengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qnativesocketengine/tst_qnativesocketengine.cpp b/tests/auto/qnativesocketengine/tst_qnativesocketengine.cpp
index 2b0b632..782c2f0 100644
--- a/tests/auto/qnativesocketengine/tst_qnativesocketengine.cpp
+++ b/tests/auto/qnativesocketengine/tst_qnativesocketengine.cpp
@@ -173,7 +173,7 @@ void tst_QNativeSocketEngine::simpleConnectToIMAP()
QVERIFY(socketDevice.read(array.data(), array.size()) == available);
// Check that the greeting is what we expect it to be
- QCOMPARE(array.constData(), QtNetworkSettings::expectedReplyIMAP().constData());
+ QVERIFY2(QtNetworkSettings::compareReplyIMAP(array), array.constData());
// Write a logout message
QByteArray array2 = "ZZZ LOGOUT\r\n";