diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2021-05-20 12:23:14 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2021-05-21 21:13:47 +0200 |
commit | 4da22d6534c7499274bc303252ef290efba1a3a5 (patch) | |
tree | 4a35215e150fe065373f4abd75c0eb1339f79981 /tests/auto/network | |
parent | f9c850cc42a5591c096e1b0d547efb93ad18f1f1 (diff) |
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 <timur.pocheptsov@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/network')
-rw-r--r-- | tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<char[]> output(new char[expected]); qsizetype size = helper.read(output.get(), expected); QCOMPARE(size, expected); -} #endif +} QTEST_MAIN(tst_QDecompressHelper) |