From 11594673533e8ceaea9a823842c69c727e9264cd Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Fri, 12 Aug 2011 09:58:45 +1000 Subject: [PATCH] test: skip some broken tests in tst_qpixmap for qpa These tests cannot be written properly for qpa, due to missing API. Task-number: QTBUG-20864 Task-number: QTBUG-20863 Change-Id: I2b311833a6738b1830c1cd8be1f20293492bebda Reviewed-on: http://codereview.qt.nokia.com/2877 Reviewed-by: Qt Sanity Bot Reviewed-by: Kalle Lehtonen --- tests/auto/qpixmap/tst_qpixmap.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/auto/qpixmap/tst_qpixmap.cpp b/tests/auto/qpixmap/tst_qpixmap.cpp index 7f7c339fcb..e62708fc3d 100644 --- a/tests/auto/qpixmap/tst_qpixmap.cpp +++ b/tests/auto/qpixmap/tst_qpixmap.cpp @@ -876,6 +876,9 @@ void tst_QPixmap::grabWidget() void tst_QPixmap::grabWindow() { +#ifdef Q_WS_QPA + QSKIP("QTBUG-20863 grabWindow is broken on most qpa backends", SkipAll); +#endif #ifdef Q_OS_WINCE // We get out of memory, if the desktop itself is too big. if (QApplication::desktop()->width() <= 480) @@ -1333,6 +1336,9 @@ void tst_QPixmap::toSymbianCFbsBitmap() void tst_QPixmap::onlyNullPixmapsOutsideGuiThread() { +#ifdef Q_WS_QPA + QSKIP("QTBUG-20864 can't determine if threaded pixmaps are available for qpa", SkipAll); +#endif #if !defined(Q_WS_WIN) && !defined(Q_WS_MAC) class Thread : public QThread {