diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index b831ecefe5..44ed5718ef 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -1,6 +1,7 @@ TEMPLATE=subdirs SUBDIRS=\ - declarative + declarative \ + particles # ### refactor: port properly # contains(QT_CONFIG, qmltest): SUBDIRS += qmltest diff --git a/tests/auto/particles/particles.pro b/tests/auto/particles/particles.pro new file mode 100644 index 0000000000..2c793a988e --- /dev/null +++ b/tests/auto/particles/particles.pro @@ -0,0 +1,28 @@ +TEMPLATE = subdirs + +PRIVATETESTS += \ + qsgage \ + qsgangleddirection \ + qsgcumulativedirection \ + qsgcustomaffector \ + qsgcustomparticle \ + qsgellipseextruder \ + qsgfriction \ + qsggravity \ + qsgimageparticle \ + qsgitemparticle \ + qsglineextruder \ + qsgmaskextruder \ + qsgparticlegroup \ + qsgparticlesystem \ + qsgpointattractor \ + qsgpointdirection \ + qsgrectangleextruder \ + qsgtargetdirection \ + qsgtrailemitter \ + qsgturbulence \ + qsgwander + +contains(QT_CONFIG, private_tests) { + SUBDIRS += $$PRIVATETESTS +} diff --git a/tests/auto/particles/qsgage/tst_qsgage.cpp b/tests/auto/particles/qsgage/tst_qsgage.cpp index d595e6e2bd..45267e5046 100644 --- a/tests/auto/particles/qsgage/tst_qsgage.cpp +++ b/tests/auto/particles/qsgage/tst_qsgage.cpp @@ -67,6 +67,8 @@ void tst_qsgage::test_kill() QCOMPARE(system->groupData[0]->size(), 500); foreach (QSGParticleData *d, system->groupData[0]->data) { + if (d->t == -1) //Recycler out-smarted me and never needed to init this datum + continue; QCOMPARE(d->x, 0.f); QCOMPARE(d->y, 0.f); QCOMPARE(d->vx, 1000.f); diff --git a/tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp b/tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp index ec86fc7fff..2a7e978b8b 100644 --- a/tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp +++ b/tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp @@ -64,6 +64,8 @@ void tst_qsgcustomaffector::test_basic() QCOMPARE(system->groupData[0]->size(), 500); foreach (QSGParticleData *d, system->groupData[0]->data) { + if (d->t == -1) //Recycler out-smarted me and never needed to init this datum + continue; QCOMPARE(d->x, 100.f); QCOMPARE(d->y, 100.f); QCOMPARE(d->vx, 100.f);