qt5base-lts/tests/auto
Andreas Aardal Hanssen ed15e4eb07 Fix focusproxy-relayed crash in QGraphicsItem destructor.
Makes tst_qgraphicsitem::tst_focusProxyDeletion not crash.

valgrind reported the error when running tst_qgraphicsitem. The crash
was very real; when deleting an item that has another item as a focus
proxy, the proxy still had a reference to the deleted item's focusProxy
pointer. I'm not a huge fan of whitebox testing but thought this crash
justifies a modification of the test to make it fail, instead of just
passing silently with a warning only given by valgrind and friends.

FTR the reason the test doesn't crash hard is that the memory is freed
but not reused within the scope of the test. So the access to the
pointer d_ptr->focusProxy succeeds, it just accesses memory that might
as well have been reclaimed. But this is quite undefined...

Task-number: QTBUG-28321
Change-Id: I2624631f5e5c2a8aa8bd4efe1fc128eba6c61f56
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
2012-12-17 11:57:02 +01:00
..
cmake Generate instances of types in the CMake tests. 2012-10-31 07:16:03 +01:00
compilerwarnings/data Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
concurrent Fix for leak in QFuture 2012-11-01 16:09:29 +01:00
corelib Remove MSVC2012-optimization for the QMetaType-test. 2012-12-14 15:06:22 +01:00
dbus tst_QDBusXmlParser: make XML attribute order deterministic 2012-12-14 11:02:47 +01:00
gui Fixed invalid memory read in SSSE3 image blending code. 2012-12-14 17:12:44 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix some typos in QProcess and QSslSocket unit tests. 2012-12-04 14:41:43 +01:00
opengl Added explicit threading API to QtOpenGL. 2012-11-30 18:28:04 +01:00
other Call QAccessible::updateAccessibility when caret moves in QTextEdit 2012-12-16 14:49:05 +01:00
printsupport Only use the user set page margins for custom paper 2012-10-30 12:53:46 +01:00
shared Auto tests: add PlatformClipboard::isAvailable() 2012-09-27 06:07:13 +02:00
sql SQL: Fix autotests for MinGW 2012-12-14 17:12:44 +01:00
testlib add a .qmake.conf file which load()s qt_build_config 2012-10-18 17:42:40 +02:00
tools Remove the timestamp info in genarated files 2012-12-15 11:32:38 +01:00
widgets Fix focusproxy-relayed crash in QGraphicsItem destructor. 2012-12-17 11:57:02 +01:00
xml Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
auto.pro Test: Redo remove QSKIP from printsupport tests 2012-09-13 19:33:08 +02:00
network-settings.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtest-config.h Auto tests: revise cursor dependant tests 2012-10-13 05:51:19 +02:00
test.pl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00