Disable tst_qdeclarativepixmapcache::dataLeak() by default
authorChris Adams <christopher.adams@nokia.com>
Mon, 5 Dec 2011 03:16:54 +0000 (13:16 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 6 Dec 2011 00:05:56 +0000 (01:05 +0100)
This test produces spurious output in the expected case and therefore
needs to be suppressed by default.

Change-Id: Ib309f96c0291180f2011451605eea7f9cea5744b
Reviewed-by: Martin Jones <martin.jones@nokia.com>

tests/auto/qtquick2/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp

index 2e32626..4dd3847 100644 (file)
@@ -52,6 +52,8 @@
 #include <qfuture.h>
 #endif
 
+#define PIXMAP_DATA_LEAK_TEST 0
+
 inline QUrl TEST_FILE(const QString &filename)
 {
     return QUrl::fromLocalFile(TESTDATA(filename));
@@ -79,7 +81,9 @@ private slots:
     void networkCrash();
 #endif
     void lockingCrash();
+#if PIXMAP_DATA_LEAK_TEST
     void dataLeak();
+#endif
 private:
     QDeclarativeEngine engine;
     TestHTTPServer server;
@@ -406,6 +410,10 @@ void tst_qdeclarativepixmapcache::lockingCrash()
     }
 }
 
+
+#if PIXMAP_DATA_LEAK_TEST
+// This test should not be enabled by default as it
+// produces spurious output in the expected case.
 #include <QtQuick/QQuickView>
 class DataLeakView : public QQuickView
 {
@@ -452,6 +460,8 @@ void tst_qdeclarativepixmapcache::dataLeak()
     // which has been deleted by the QDeclarativePixmapStore
     // destructor.
 }
+#endif
+#undef PIXMAP_DATA_LEAK_TEST
 
 QTEST_MAIN(tst_qdeclarativepixmapcache)