qt6-bb10/tests/auto/corelib
Marc Mutz 3b0536bbe8 tst_ContainerApiSymmetry: make assign_impl() robust w.r.t. overallocation
The parameter passed to reserve() is just a hint. The container
implementation is free to choose a larger capacity, and some do
(e.g. QList in prepend optimization mode).

Fix the test by querying the container for its post-make<>()
capacity() and taking a larger-than-expected initial capacity() into
account when later re-checking the capacity().

Change-Id: Id8f26f14e8df9d685ca2387ec4a52d74fea7cb9d
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-05-13 16:58:36 +02:00
..
animation tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
global Short live Q_NODISCARD_CTOR 2023-04-30 19:42:29 +02:00
io Move the formatting of <chrono> durations to QDebug & QtTest 2023-05-06 17:54:23 +00:00
ipc IPC: tst_QNativeIpcKey: rename duplicate row in test 2023-04-28 22:30:13 -05:00
itemmodels Remove unused variables 2023-04-19 12:55:02 +02:00
kernel QSlotObjectBase: move the `which` parameter to the 4th position 2023-05-11 21:53:22 -07:00
mimetypes QMimeDatabase: de-duplicate some code in the unittests 2023-05-07 14:29:28 +03:00
platform tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
plugin Q{Plugin,Factory}Loader: downgrade warnings to debug messages 2023-05-05 23:21:52 -07:00
serialization qc14n.h: general cleanup 2023-05-01 22:52:22 +03:00
text tst_QAnyStringView: fix warning of unused variable by using it 2023-05-12 20:54:13 +00:00
thread tst_qthreadpool: expect a warning, cleaning up the test run 2023-05-04 19:40:32 +02:00
time Fix QTimeZone::offsetData() for the case without transitions 2023-05-11 13:46:42 +02:00
tools tst_ContainerApiSymmetry: make assign_impl() robust w.r.t. overallocation 2023-05-13 16:58:36 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00