diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2010-01-14 08:48:16 (GMT) |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2010-01-14 08:48:16 (GMT) |
commit | cf74ef2ca9163ac6e15b6a218ef284f6104cdcab (patch) | |
tree | 68fc4ba63a8080917550f8c769c8c4e8f64f45a1 /tests/benchmarks/qnetworkreply/tst_qnetworkreply.cpp | |
parent | 3531f4c831407016ef0735d9cdff9b193e4b3f92 (diff) | |
parent | 862d5433fb694a03715b2327a107b3192b921924 (diff) | |
download | Qt-cf74ef2ca9163ac6e15b6a218ef284f6104cdcab.zip Qt-cf74ef2ca9163ac6e15b6a218ef284f6104cdcab.tar.gz Qt-cf74ef2ca9163ac6e15b6a218ef284f6104cdcab.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6
Conflicts:
dist/changes-4.6.1
Diffstat (limited to 'tests/benchmarks/qnetworkreply/tst_qnetworkreply.cpp')
-rw-r--r-- | tests/benchmarks/qnetworkreply/tst_qnetworkreply.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/benchmarks/qnetworkreply/tst_qnetworkreply.cpp b/tests/benchmarks/qnetworkreply/tst_qnetworkreply.cpp index edaf545..6327123 100644 --- a/tests/benchmarks/qnetworkreply/tst_qnetworkreply.cpp +++ b/tests/benchmarks/qnetworkreply/tst_qnetworkreply.cpp @@ -561,15 +561,15 @@ void tst_qnetworkreply::httpUploadPerformance() generator.start(); time.start(); QTestEventLoop::instance().enterLoop(40); + qint64 elapsed = time.elapsed(); + reader.exit(); + reader.wait(); + QVERIFY(reply->isFinished()); QCOMPARE(reply->error(), QNetworkReply::NoError); QVERIFY(!QTestEventLoop::instance().timeout()); - qint64 elapsed = time.elapsed(); qDebug() << "tst_QNetworkReply::httpUploadPerformance" << elapsed << "msec, " << ((UploadSize/1024.0)/(elapsed/1000.0)) << " kB/sec"; - - reader.exit(); - reader.wait(); } |