From 34cd8fd566cd61385db12112d9515b0d5388dad3 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Tue, 4 Sep 2012 12:40:16 +0200 Subject: tests: Don't omit the body of a test function with QT_BUILD_INTERNAL Changing it outside of the test function definition to avoid running empty/inapplicable test functions. Change-Id: I713560cde7f715696984ed082d682900f5f1bcdd Reviewed-by: Qt Doc Bot Reviewed-by: Thiago Macieira Reviewed-by: Caroline Chao --- tests/auto/gui/painting/qregion/tst_qregion.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/auto/gui/painting/qregion/tst_qregion.cpp') diff --git a/tests/auto/gui/painting/qregion/tst_qregion.cpp b/tests/auto/gui/painting/qregion/tst_qregion.cpp index 863690fd78..a4fdf1d294 100644 --- a/tests/auto/gui/painting/qregion/tst_qregion.cpp +++ b/tests/auto/gui/painting/qregion/tst_qregion.cpp @@ -96,8 +96,10 @@ private slots: void regionFromPath(); +#ifdef QT_BUILD_INTERNAL void regionToPath_data(); void regionToPath(); +#endif }; Q_DECLARE_METATYPE(QPolygon) @@ -910,6 +912,7 @@ void tst_QRegion::regionFromPath() Q_DECLARE_METATYPE(QPainterPath) +#ifdef QT_BUILD_INTERNAL void tst_QRegion::regionToPath_data() { QTest::addColumn("path"); @@ -957,6 +960,7 @@ void tst_QRegion::regionToPath_data() QTest::newRow("Grid") << path; } } +#endif #ifdef QT_BUILD_INTERNAL QT_BEGIN_NAMESPACE @@ -964,9 +968,9 @@ extern QPainterPath qt_regionToPath(const QRegion ®ion); QT_END_NAMESPACE #endif +#ifdef QT_BUILD_INTERNAL void tst_QRegion::regionToPath() { -#ifdef QT_BUILD_INTERNAL QFETCH(QPainterPath, path); @@ -1001,8 +1005,8 @@ void tst_QRegion::regionToPath() QCOMPARE(ia, ib); QCOMPARE(a.boundingRect(), b.boundingRect()); } -#endif } +#endif QTEST_MAIN(tst_QRegion) #include "tst_qregion.moc" -- cgit v1.2.3