Run QIcon related crash test with the other QtGui types.
authorStephen Kelly <stephen.kelly@kdab.com>
Fri, 13 Jul 2012 18:02:29 +0000 (20:02 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sat, 14 Jul 2012 11:25:11 +0000 (13:25 +0200)
Change-Id: I475cfc5a91a046951feecb425f8235ad37f1ba44
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp

index 27967fa..ca62af2 100644 (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);
 }