Run QIcon related crash test with the other QtGui types.
Change-Id: I475cfc5a91a046951feecb425f8235ad37f1ba44 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
55d90b3240
commit
79dddcf089
@ -3821,10 +3821,12 @@ void tst_QVariant::guiVariantAtExit()
|
||||
// crash test, it should not crash at QGuiApplication exit
|
||||
static QVariant cursor = QCursor();
|
||||
static QVariant point = QPoint();
|
||||
static QVariant icon = QIcon();
|
||||
static QVariant image = QImage();
|
||||
static QVariant pallete = QPalette();
|
||||
Q_UNUSED(cursor);
|
||||
Q_UNUSED(point);
|
||||
Q_UNUSED(icon);
|
||||
Q_UNUSED(image);
|
||||
Q_UNUSED(pallete);
|
||||
QVERIFY(true);
|
||||
@ -3833,9 +3835,7 @@ void tst_QVariant::guiVariantAtExit()
|
||||
void tst_QVariant::widgetsVariantAtExit()
|
||||
{
|
||||
// crash test, it should not crash at QGuiApplication exit
|
||||
static QVariant icon= QIcon();
|
||||
static QVariant sizePolicy = QSizePolicy();
|
||||
Q_UNUSED(icon);
|
||||
Q_UNUSED(sizePolicy);
|
||||
QVERIFY(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user