summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-02-08 00:07:30 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-02-08 00:07:30 (GMT)
commit6ecf052a6da0a67a7d499e022757a3cabd83a593 (patch)
tree1cf9d8d4e623d86d59180299f715981ff5bc52cc
parent8f6bd97ac405f8ed31d4c6a8dd0edd8c9f1580ce (diff)
downloadQt-6ecf052a6da0a67a7d499e022757a3cabd83a593.zip
Qt-6ecf052a6da0a67a7d499e022757a3cabd83a593.tar.gz
Qt-6ecf052a6da0a67a7d499e022757a3cabd83a593.tar.bz2
Fix autotest.
-rw-r--r--tests/auto/declarative/qmlxmllistmodel/qmlxmllistmodel.pro4
-rw-r--r--tests/auto/declarative/qmlxmllistmodel/tst_qmlxmllistmodel.cpp6
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlxmllistmodel/qmlxmllistmodel.pro b/tests/auto/declarative/qmlxmllistmodel/qmlxmllistmodel.pro
index 462723e..8e58a32 100644
--- a/tests/auto/declarative/qmlxmllistmodel/qmlxmllistmodel.pro
+++ b/tests/auto/declarative/qmlxmllistmodel/qmlxmllistmodel.pro
@@ -1,5 +1,9 @@
load(qttest_p4)
contains(QT_CONFIG,declarative): QT += declarative gui
+contains(QT_CONFIG,xmlpatterns) {
+ QT += xmlpatterns
+ DEFINES += QTEST_XMLPATTERNS
+}
macx:CONFIG -= app_bundle
SOURCES += tst_qmlxmllistmodel.cpp
diff --git a/tests/auto/declarative/qmlxmllistmodel/tst_qmlxmllistmodel.cpp b/tests/auto/declarative/qmlxmllistmodel/tst_qmlxmllistmodel.cpp
index 8e97b7c..039cbf4 100644
--- a/tests/auto/declarative/qmlxmllistmodel/tst_qmlxmllistmodel.cpp
+++ b/tests/auto/declarative/qmlxmllistmodel/tst_qmlxmllistmodel.cpp
@@ -39,6 +39,8 @@
**
****************************************************************************/
#include <qtest.h>
+
+#ifdef QTEST_XMLPATTERNS
#include <QtDeclarative/qmlengine.h>
#include <QtDeclarative/qmlcomponent.h>
#include <private/qmlxmllistmodel_p.h>
@@ -195,3 +197,7 @@ void tst_qmlxmllistmodel::uniqueRoleNames()
QTEST_MAIN(tst_qmlxmllistmodel)
#include "tst_qmlxmllistmodel.moc"
+
+#else
+QTEST_NOOP_MAIN
+#endif