test: mark expected failures in tst_qglyphrun for qpa
authorRohan McGovern <rohan.mcgovern@nokia.com>
Fri, 5 Aug 2011 04:17:30 +0000 (14:17 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 5 Aug 2011 11:19:58 +0000 (13:19 +0200)
Task-number: QTBUG-20760
Change-Id: Id046abfc8dcce2c6d068e5febf8c2b8777b50f53
Reviewed-on: http://codereview.qt.nokia.com/2657
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
tests/auto/qglyphrun/tst_qglyphrun.cpp

index a18a2ac..a5a5cd1 100644 (file)
@@ -93,6 +93,10 @@ void tst_QGlyphRun::initTestCase()
 
     m_testFont = QFont("QtsSpecialTestFont");
 
+#ifdef Q_WS_QPA
+    QEXPECT_FAIL("", "QTBUG-20760 fails on qpa", Continue);
+#endif
+
     QCOMPARE(QFontInfo(m_testFont).family(), QString::fromLatin1("QtsSpecialTestFont"));
 }
 
@@ -237,6 +241,11 @@ void tst_QGlyphRun::textLayoutGlyphIndexes()
     layout.endLayout();
 
     QList<QGlyphRun> listOfGlyphs = layout.glyphRuns();
+
+#ifdef Q_WS_QPA
+    QEXPECT_FAIL("", "QTBUG-20760 fails on qpa", Abort);
+#endif
+
     QCOMPARE(listOfGlyphs.size(), 1);
 
     QGlyphRun glyphs = listOfGlyphs.at(0);
@@ -283,6 +292,10 @@ void tst_QGlyphRun::drawExistingGlyphs()
     drawGlyphs.save("drawExistingGlyphs_drawGlyphIndexes.png");
 #endif
 
+#ifdef Q_WS_QPA
+    QEXPECT_FAIL("", "QTBUG-20760 fails on qpa", Continue);
+#endif
+
     QCOMPARE(textLayoutDraw, drawGlyphs);
 }