From 2f46ea9fd677ffff3592b096db4aecdaaaa2b5aa Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Tue, 17 Jan 2012 13:26:41 +0100 Subject: [PATCH] Skip tst_QPushButton::sizeHint() with Mac style on Mac OS X QStyleFactory cannot create the Mac style, so skip the test for now. Task-number: QTBUG-23680 Change-Id: I2ae61aab152cd8a4e6a7270902df40dd3cc6df3b Reviewed-by: Jason McDonald --- tests/auto/widgets/widgets/qpushbutton/tst_qpushbutton.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/auto/widgets/widgets/qpushbutton/tst_qpushbutton.cpp b/tests/auto/widgets/widgets/qpushbutton/tst_qpushbutton.cpp index c0b3d34f7e..fda94f5450 100644 --- a/tests/auto/widgets/widgets/qpushbutton/tst_qpushbutton.cpp +++ b/tests/auto/widgets/widgets/qpushbutton/tst_qpushbutton.cpp @@ -599,6 +599,11 @@ void tst_QPushButton::sizeHint() { QFETCH(QString, stylename); +#ifdef Q_OS_MAC + if (stylename == "mac") + QSKIP("QStyleFactory cannot create the Mac style, see QTBUG-23680"); +#endif + QStyle *style = QStyleFactory::create(stylename); if (!style) QFAIL(qPrintable(QString::fromLatin1("Cannot create style: %1").arg(stylename)));