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:
Stephen Kelly 2012-07-13 20:02:29 +02:00 committed by Qt by Nokia
parent 55d90b3240
commit 79dddcf089

View File

@ -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);
}