aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles/qsggravity
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-10-04 14:17:50 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-05 04:48:05 +0200
commit0923b0b56e631031461cc7bde56afb1dd8cad0de (patch)
treed6c9860566eccee8d6bdf2d967de93983d1b2042 /tests/auto/particles/qsggravity
parent8846c36bcad1d05879e6765953c5267ae782a905 (diff)
Update particles autotests to not use SRCDIR
Change-Id: I1b508756ffca6a05d495c52d84f46fcaeafe8797 Reviewed-on: http://codereview.qt-project.org/5947 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/particles/qsggravity')
-rw-r--r--tests/auto/particles/qsggravity/qsggravity.pro4
-rw-r--r--tests/auto/particles/qsggravity/tst_qsggravity.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/particles/qsggravity/qsggravity.pro b/tests/auto/particles/qsggravity/qsggravity.pro
index d7a7bbd4a3..3f68b4e350 100644
--- a/tests/auto/particles/qsggravity/qsggravity.pro
+++ b/tests/auto/particles/qsggravity/qsggravity.pro
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
SOURCES += tst_qsggravity.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
diff --git a/tests/auto/particles/qsggravity/tst_qsggravity.cpp b/tests/auto/particles/qsggravity/tst_qsggravity.cpp
index 584ec18d52..e99aa1e3c9 100644
--- a/tests/auto/particles/qsggravity/tst_qsggravity.cpp
+++ b/tests/auto/particles/qsggravity/tst_qsggravity.cpp
@@ -59,7 +59,7 @@ tst_qsggravity::tst_qsggravity()
void tst_qsggravity::test_basic()
{
- QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+ QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
QCOMPARE(system->groupData[0]->size(), 500);