qt5base-lts/tests/auto/corelib/tools
Mårten Nordheim ea7d87b5b5 QHash: Fix erase() edge-case
When the element you want to erase is the last element AND the
next element (element 0), when rehashed, would be relocated to the last
element, this leads to the state below. Which is similar to a test in
tst_qhash for some seeds.

auto it = hash.begin + (hash.size - 1)
it = hash.erase(it)
it != hash.end

By forcing the iterator to increment if we were erasing the last element
we always end up with a pointer which is equal to hash.end

Befriend the tst_qhash class so we can set the seed to a known-bad one

Pick-to: 6.2 6.1
Change-Id: Ie0b175003a2acb175ef5e3ab5a984e010f65d986
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2021-06-18 11:20:40 +02:00
..
collections String API Symmetry: test for indexOf with large negative offset 2021-06-11 22:04:04 +00:00
containerapisymmetry Fix gcc warnings from having only one of assignment/copy 2021-04-11 19:53:51 +02:00
qalgorithms Remove the qmake project files 2021-01-07 15:32:28 +01:00
qarraydata QArrayData: store the right flag type, not an int 2021-05-17 00:11:12 +02:00
qbitarray Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcache Fix gcc warnings from having only one of assignment/copy 2021-04-11 19:53:51 +02:00
qcommandlineparser QCommandLineParser: fix crash if there's no QCoreApplication 2021-03-01 23:03:00 +01:00
qcontiguouscache Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcryptographichash Remove the qmake project files 2021-01-07 15:32:28 +01:00
qduplicatetracker Remove the qmake project files 2021-01-07 15:32:28 +01:00
qeasingcurve Remove the qmake project files 2021-01-07 15:32:28 +01:00
qexplicitlyshareddatapointer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qflatmap Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfreelist Remove the qmake project files 2021-01-07 15:32:28 +01:00
qhash QHash: Fix erase() edge-case 2021-06-18 11:20:40 +02:00
qhashfunctions QHash: fix qHash(std::pair) 2021-05-23 12:08:43 -07:00
qhashseed Introduce QHashSeed and switch to size_t seeds 2021-05-23 12:08:42 -07:00
qline Remove the qmake project files 2021-01-07 15:32:28 +01:00
qlist Add more tests for QList/QString/QBA 2021-04-27 14:12:34 +02:00
qmacautoreleasepool Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmakearray Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmap Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qmargins Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmessageauthenticationcode Remove the qmake project files 2021-01-07 15:32:28 +01:00
qoffsetstringarray Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpair Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpoint Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpointf Remove the qmake project files 2021-01-07 15:32:28 +01:00
qqueue Remove the qmake project files 2021-01-07 15:32:28 +01:00
qrect Remove the qmake project files 2021-01-07 15:32:28 +01:00
qringbuffer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qscopedpointer Disable warnings from using deprecated QScopedPointer::take 2021-02-13 06:44:52 +01:00
qscopedvaluerollback Remove the qmake project files 2021-01-07 15:32:28 +01:00
qscopeguard Remove the qmake project files 2021-01-07 15:32:28 +01:00
qset Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qsharedpointer tst_QSharedPointer: Fix Clang warnings about self assignment 2021-05-19 02:48:47 +02:00
qsize Add more support for structured bindings 2021-02-25 16:08:44 +01:00
qsizef Add more support for structured bindings 2021-02-25 16:08:44 +01:00
qstl Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtaggedpointer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtimeline Port of QTimeLine to new property system 2021-04-26 16:44:54 +02:00
qvarlengtharray Remove the qmake project files 2021-01-07 15:32:28 +01:00
qversionnumber Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Introduce QHashSeed and switch to size_t seeds 2021-05-23 12:08:42 -07:00