qt5base-lts/tests/auto/corelib
Ivan Solovev d11941db41 Q[Multi]Hash::reserve(): do nothing if desired size is less than current
Calling Q[Multi]Hash::reserve(n) when n is much smaller than the
current amount of elements in the hash, could result in an infinite
loop, because at some point the algorithm could not find a free bucket
for the element.

Fixing it by returning early if the new desired capacity is less than
current.

Fixes: QTBUG-102067
Pick-to: 6.3 6.2
Change-Id: I38ef0b2168c4e2a317eedf91b2155b1fdffb1c27
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-04-06 16:46:59 +02:00
..
animation tst_qanimationgroup: fix memleaks 2022-01-05 08:22:00 +01:00
global Move some purely floating-point testing from tst_QLocale to tst_QNumeric 2022-04-01 23:11:35 +02:00
io QBuffer: fail early in seek() beyond QByteArray's max capacity 2022-04-05 20:34:44 +00:00
itemmodels Fix test to pass with QT_FORCE_ASSERTS 2022-02-18 18:55:38 +01:00
kernel Revert "Blacklist: test cases blacklisted in tst_QSystemSemaphore:" 2022-04-01 08:00:39 +00:00
mimetypes Tests: Do not depend on transitive includes 2022-03-17 17:14:37 +01:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin Android: activate tst_QPluginLoader 2022-03-30 19:05:59 +02:00
serialization Disable test tst_qxmlstream for QNX 2022-03-25 20:16:30 +02:00
text QByteArray/QVarLengthArray: add missing resize(n, v) overloads 2022-04-06 10:44:40 +00:00
thread Android: activate tst_QThreadStorage 2022-03-25 22:43:49 +01:00
time Add a test and remove a work-around for a fixed bug 2022-03-29 22:21:57 +02:00
tools Q[Multi]Hash::reserve(): do nothing if desired size is less than current 2022-04-06 16:46:59 +02:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00