diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-01-17 19:18:39 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-01-17 19:18:39 (GMT) |
commit | 066ba528045435519917d37c781d04cea4ca4cfc (patch) | |
tree | c9e8254165f74656d7739b297b8e305135ef6fe7 /tests/auto/qnetworkreply | |
parent | 4fb5c42ede2b33c3092d70aa3e32cf6c677bd4d8 (diff) | |
download | Qt-066ba528045435519917d37c781d04cea4ca4cfc.zip Qt-066ba528045435519917d37c781d04cea4ca4cfc.tar.gz Qt-066ba528045435519917d37c781d04cea4ca4cfc.tar.bz2 |
Test case fixes for QNetworkReply
1. Increase maximum heap, as FTP large file test was running out
2. Add an additional QVERIFY so that a test fails instead of suffering
an assertion failure in case no data is received.
Reviewed-by: Markus Goetz
Diffstat (limited to 'tests/auto/qnetworkreply')
-rw-r--r-- | tests/auto/qnetworkreply/test/test.pro | 2 | ||||
-rw-r--r-- | tests/auto/qnetworkreply/tst_qnetworkreply.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qnetworkreply/test/test.pro b/tests/auto/qnetworkreply/test/test.pro index 7efc2fb..12fdf04 100644 --- a/tests/auto/qnetworkreply/test/test.pro +++ b/tests/auto/qnetworkreply/test/test.pro @@ -33,6 +33,6 @@ symbian:{ # Symbian toolchain does not support correct include semantics INCLUDEPATH+=..\\..\\..\\..\\include\\QtNetwork\\private # bigfile test case requires more heap - TARGET.EPOCHEAPSIZE="0x100 0x1000000" + TARGET.EPOCHEAPSIZE="0x100 0x10000000" TARGET.CAPABILITY="ALL -TCB" } diff --git a/tests/auto/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/qnetworkreply/tst_qnetworkreply.cpp index c796272..b1fddfa 100644 --- a/tests/auto/qnetworkreply/tst_qnetworkreply.cpp +++ b/tests/auto/qnetworkreply/tst_qnetworkreply.cpp @@ -5128,6 +5128,7 @@ public: void finishedSlot() { // We should have already received all readyRead + QVERIFY(!bytesAvailableList.isEmpty()); QVERIFY(bytesAvailableList.last() == uploadSize); } }; |