summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/auto/files/tst_files.cpp14
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();