qt5base-lts/tests/auto/corelib/kernel/qvariant
Giuseppe D'Angelo c0f7ecab20 QVariant: remove UB and fix semantics in a test
The code was reading from uninitialized memory when creating a
variant. Fixing that reveals that the test semantics
are broken: when dealing with datatypes without a registered
operator==, QVariant resorts to memcmp, so the two objects
would've actually compared equal. Amend that.

Change-Id: I36bad7ee6a45154d5d534b7dd8b618cc0a900126
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-06-06 13:29:34 +02:00
..
stream Remove QRegExp from QVariant 2020-05-14 12:19:47 +00:00
.gitignore
.prev_CMakeLists.txt CMake: Regenerate tests projects 2020-03-12 11:41:39 +01:00
CMakeLists.txt CMake: Regenerate tests projects 2020-03-12 11:41:39 +01:00
qvariant.pro Remove QLinkedList 2020-02-19 21:01:07 +01:00
qvariant.qrc
tst_qvariant.cpp QVariant: remove UB and fix semantics in a test 2020-06-06 13:29:34 +02:00