diff options
author | J-P Nurmi <jpnurmi@gmail.com> | 2012-09-07 11:10:28 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-07 15:55:36 +0200 |
commit | 31d5249ae1f31394d7324650aeadfe2cd1dd622c (patch) | |
tree | f5afab1549ee1274ee1a3761504ec90de5d962e0 /tests/auto/qml/qmlmin | |
parent | c520a9c4093bbe493e008a07b0c453d3c9fb1b69 (diff) |
QtQml tests: remove QSKIP -> wrap within !QTEST_CROSS_COMPILED guards
Change-Id: I200bf6feb137e39061f144bdabd825dea70bd539
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Diffstat (limited to 'tests/auto/qml/qmlmin')
-rw-r--r-- | tests/auto/qml/qmlmin/tst_qmlmin.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/auto/qml/qmlmin/tst_qmlmin.cpp b/tests/auto/qml/qmlmin/tst_qmlmin.cpp index cafcf29a80..4feddfa16b 100644 --- a/tests/auto/qml/qmlmin/tst_qmlmin.cpp +++ b/tests/auto/qml/qmlmin/tst_qmlmin.cpp @@ -55,8 +55,10 @@ public: private slots: void initTestCase(); +#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled void qmlMinify_data(); void qmlMinify(); +#endif private: QString qmlminPath; @@ -164,12 +166,9 @@ Examples are any .qml files under the examples/ directory that start with a lower case letter. */ +#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled void tst_qmlmin::qmlMinify_data() { -#if defined(QTEST_CROSS_COMPILED) - return; -#endif - QTest::addColumn<QString>("file"); QString examples = QLatin1String(SRCDIR) + "/../../../../examples/"; @@ -182,12 +181,11 @@ void tst_qmlmin::qmlMinify_data() foreach (const QString &file, files) QTest::newRow(qPrintable(file)) << file; } +#endif +#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled void tst_qmlmin::qmlMinify() { -#if defined(QTEST_CROSS_COMPILED) - QSKIP("sources not available when cross compiled"); -#endif QFETCH(QString, file); QProcess qmlminify; @@ -204,6 +202,7 @@ void tst_qmlmin::qmlMinify() else QCOMPARE(qmlminify.exitCode(), 0); } +#endif QTEST_MAIN(tst_qmlmin) |