summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/access/qdecompresshelper
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2022-03-31 18:48:42 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2022-04-27 18:31:01 +0200
commitd642c16fe745e156a93129fbb3750784b361ee39 (patch)
tree62665c96fad5d30cf51e970b5e0e06f36066f8a0 /tests/auto/network/access/qdecompresshelper
parent45b09215e51b84fd6d01e5d8a8cb8555c9099f0e (diff)
QNetworkReply: update decompress error message and handling
The error message was quite vague since it would then not require any additional translations. However, in hindsight this was a mistake since now developers just thought their downloads were being corrupted. Pick-to: 6.2 6.3 Fixes: QTBUG-101942 Change-Id: Ie9af42510ca027d15248e5bcf21e836e709898d9 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/auto/network/access/qdecompresshelper')
-rw-r--r--tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp b/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp
index 3177cf02c1..27fb8c8ac5 100644
--- a/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp
+++ b/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp
@@ -432,10 +432,13 @@ void tst_QDecompressHelper::archiveBomb()
QVERIFY(bytesRead <= output.size());
QVERIFY(helper.isValid());
- if (shouldFail)
+ if (shouldFail) {
QCOMPARE(bytesRead, -1);
- else
+ QVERIFY(!helper.errorString().isEmpty());
+ } else {
QVERIFY(bytesRead > 0);
+ QVERIFY(helper.errorString().isEmpty());
+ }
}
void tst_QDecompressHelper::bigZlib()