From 45d87f7bab7873dbe3e180c6ec0886ada92d2fa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Matysiak?= Date: Thu, 13 Jun 2024 16:57:36 +0200 Subject: [PATCH] Skip tst_QNetworkReply::contentEncodingBigPayload on 32b arch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit 4d2744e4345193cdf7ec2bbf06b0a0d169827d8b) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp index a26d2c809b0..045e0713bd2 100644 --- a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp +++ b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp @@ -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("encoding"); QTest::addColumn("path"); QTest::addColumn("expectedSize");