Correct behavior for passing test, ifdef out failing test.
authorToby Tomkins <toby.tomkins@nokia.com>
Mon, 17 Oct 2011 05:52:18 +0000 (15:52 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 18 Oct 2011 23:13:12 +0000 (01:13 +0200)
Task-number: QTBUG-21005, QTBUG-21688

Change-Id: I2b6ada399e7d26045c7f0a767082892332a6a378
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
tests/auto/declarative/qsgimage/qsgimage.pro
tests/auto/declarative/qsgimage/tst_qsgimage.cpp

index b1ca1db..11abb9f 100644 (file)
@@ -10,6 +10,4 @@ testDataFiles.path = .
 DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
-#temporary
-CONFIG += insignificant_test
 QT += core-private gui-private declarative-private network testlib
index fd22f48..7a850db 100644 (file)
@@ -475,9 +475,7 @@ void tst_qsgimage::tiling_QTBUG_6716()
     QImage img = canvas->grabFrameBuffer();
     for (int x = 0; x < tiling->width(); ++x) {
         for (int y = 0; y < tiling->height(); ++y) {
-#ifdef Q_WS_QPA
-            QEXPECT_FAIL("", "QTBUG-21005 fails", Abort);
-#endif
+            QEXPECT_FAIL("horizontal_tiling", "QTBUG-21005 - stable failing test", Abort);
             QVERIFY(img.pixel(x, y) == qRgb(0, 255, 0));
         }
     }
@@ -487,9 +485,7 @@ void tst_qsgimage::tiling_QTBUG_6716()
 void tst_qsgimage::tiling_QTBUG_6716_data()
 {
     QTest::addColumn<QString>("source");
-#ifdef QT_BUILD_INTERNAL // QTBUG-21688 - unstable test on developer build
     QTest::newRow("vertical_tiling") << "vtiling.qml";
-#endif
     QTest::newRow("horizontal_tiling") << "htiling.qml";
 }