summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qnetworkreply/tst_qnetworkreply.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2010-01-14 08:48:16 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2010-01-14 08:48:16 (GMT)
commitcf74ef2ca9163ac6e15b6a218ef284f6104cdcab (patch)
tree68fc4ba63a8080917550f8c769c8c4e8f64f45a1 /tests/benchmarks/qnetworkreply/tst_qnetworkreply.cpp
parent3531f4c831407016ef0735d9cdff9b193e4b3f92 (diff)
parent862d5433fb694a03715b2327a107b3192b921924 (diff)
downloadQt-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.cpp8
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();
}