From 4da22d6534c7499274bc303252ef290efba1a3a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Thu, 20 May 2021 12:23:14 +0200 Subject: tst_QDecompressHelper: Move pointer size check inside the test For some reason the test case was (no longer?) detected by moc Change-Id: I20f20de76479f7d9db43fae985cefe0869a7e203 Reviewed-by: Timur Pocheptsov Reviewed-by: Edward Welbourne --- .../network/access/qdecompresshelper/tst_qdecompresshelper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/auto/network') diff --git a/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp b/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp index cfeff188f4..2c0241ac5f 100644 --- a/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp +++ b/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp @@ -67,9 +67,7 @@ private Q_SLOTS: void archiveBomb_data(); void archiveBomb(); -#if QT_POINTER_SIZE >= 8 void bigZlib(); -#endif }; void tst_QDecompressHelper::initTestCase() @@ -432,9 +430,11 @@ void tst_QDecompressHelper::archiveBomb() QVERIFY(bytesRead > 0); } -#if QT_POINTER_SIZE >= 8 void tst_QDecompressHelper::bigZlib() { +#if QT_POINTER_SIZE < 8 + QSKIP("This cannot be tested on 32-bit systems"); +#else // ZLib uses unsigned integers as their size type internally which creates some special // cases in the internal code that should be tested! QFile file(":/5GiB.txt.inflate"); @@ -454,8 +454,8 @@ void tst_QDecompressHelper::bigZlib() std::unique_ptr output(new char[expected]); qsizetype size = helper.read(output.get(), expected); QCOMPARE(size, expected); -} #endif +} QTEST_MAIN(tst_QDecompressHelper) -- cgit v1.2.3