diff options
author | Jędrzej Nowacki <jedrzej.nowacki@digia.com> | 2014-05-07 13:09:23 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-15 17:37:28 +0200 |
commit | 813fdcf50e2865e7bbbd604391e1a65fe9d4541a (patch) | |
tree | d868bb8b90303403f641911aab390e2d8675f0ad | |
parent | cfbeb417ec6c7d827cd06de1025e83dface28937 (diff) |
Add even more debug output to tst_files.
The test blocks CI sadly nobody can reproduce the failure locally. This
change is extension to c416ada9bebed82c9859882da14078222354c0d4
Change-Id: I00fd29286a2ea35c4dbb2396471d471ddc94882b
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
-rw-r--r-- | tests/auto/files/tst_files.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/auto/files/tst_files.cpp b/tests/auto/files/tst_files.cpp index bc1d14d..cf26117 100644 --- a/tests/auto/files/tst_files.cpp +++ b/tests/auto/files/tst_files.cpp @@ -261,9 +261,10 @@ void tst_Files::fileUploadDownload() QTRY_VERIFY(reply->isFinished()); if (reply->error() != QNetworkReply::NoError) { // the test has failed already, let's printout some debugging information - qDebug() << downloadData; - qDebug() << req.url(); - qDebug() << reply->readAll(); + qDebug() << "downloadData:" << downloadData; + qDebug() << "reply->readAll():" << reply->readAll(); + qDebug() << "reply->error() and errorString():" << reply->error() << reply->errorString(); + qDebug() << "reply http code:" << reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).value<int>(); QCOMPARE(reply->error(), QNetworkReply::NoError); } QByteArray imageData = reply->readAll(); @@ -333,9 +334,10 @@ void tst_Files::fileUploadDownload() QTRY_VERIFY(reply->isFinished()); if (reply->error() != QNetworkReply::NoError) { // the test has failed already, let's printout some debugging information - qDebug() << downloadData; - qDebug() << req.url(); - qDebug() << reply->readAll(); + qDebug() << "downloadData:" << downloadData; + qDebug() << "reply->readAll():" << reply->readAll(); + qDebug() << "reply->error() and errorString():" << reply->error() << reply->errorString(); + qDebug() << "reply http code:" << reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).value<int>(); QCOMPARE(reply->error(), QNetworkReply::NoError); } QByteArray imageData = reply->readAll(); |