Skip tst_QNetworkReply::contentEncodingBigPayload on 32b arch

The test requires allocating 4GB of memory to handle a big file.
On a 32b architecture, this leads to a std::bad_alloc exception and
abort in result (tested on VxWorks 24.03 on an imx6 board).
Because of that, the test can't work properly and it can't be
blacklisted.

Work around the issue by skipping the test.

Pick-to: 6.7
Task-number: QTBUG-115777
Change-Id: I46002a27aed09706cd61d2e2c8d4bd1e12a16c36
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit 4d2744e4345193cdf7ec2bbf06b0a0d169827d8b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Łukasz Matysiak 2024-06-13 16:57:36 +02:00 committed by Qt Cherry-pick Bot
parent 3c494d4e40
commit 45d87f7bab

View File

@ -10300,6 +10300,9 @@ void tst_QNetworkReply::contentEncoding()
#if QT_CONFIG(http)
void tst_QNetworkReply::contentEncodingBigPayload_data()
{
#if Q_PROCESSOR_WORDSIZE <= 4
QSKIP("Allocating 4GB leads to std::bad_alloc on a 32b architecture");
#endif
QTest::addColumn<QByteArray>("encoding");
QTest::addColumn<QString>("path");
QTest::addColumn<qint64>("expectedSize");