diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-01-06 03:39:14 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-01-10 00:36:06 (GMT) |
commit | 026a24855ec16626ab101007719a836f5a4e3c47 (patch) | |
tree | 73331d0c48023ed9f5489735443d2b56b3d67736 /tests/auto/qnativesocketengine | |
parent | e6286c54bd66c2db06687127fea69fcc398ffbde (diff) | |
download | Qt-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.cpp | 2 |
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"; |