diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-10-04 14:17:50 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-05 04:48:05 +0200 |
commit | 0923b0b56e631031461cc7bde56afb1dd8cad0de (patch) | |
tree | d6c9860566eccee8d6bdf2d967de93983d1b2042 /tests/auto/particles/qsggravity | |
parent | 8846c36bcad1d05879e6765953c5267ae782a905 (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.pro | 4 | ||||
-rw-r--r-- | tests/auto/particles/qsggravity/tst_qsggravity.cpp | 2 |
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); |