From 33a07e0afd9f98fedd22f4dc2c555cf634ef2b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Arve=20S=C3=A6ther?= Date: Wed, 9 Sep 2009 16:10:42 +0200 Subject: Do not run the respectHFW autotest on all platforms. It fails on some platforms because of a bug in the autotest. There might be more platforms also, but these are the ones that currently report the problem. Reviewed-by: paul --- tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp index 3ca1181..20803a5 100644 --- a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp +++ b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp @@ -2589,6 +2589,9 @@ protected: void tst_QGraphicsWidget::respectHFW() { +#if defined(Q_OS_WINCE) || defined(Q_OS_MAC) || defined(Q_WS_QWS) + qDebug("This test is platform dependent, it fails on wince, mac and qws. Please fix."); +#else QGraphicsScene scene; HFWWidget *window = new HFWWidget; scene.addItem(window); @@ -2620,6 +2623,7 @@ void tst_QGraphicsWidget::respectHFW() const QSizeF winSize = window->size(); qreal minHFW = window->effectiveSizeHint(Qt::MinimumSize, QSizeF(winSize.width(), -1)).height(); QVERIFY(qAbs(minHFW - winSize.height()) < 1); +#endif } QTEST_MAIN(tst_QGraphicsWidget) -- cgit v0.12