aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles/qsgturbulence/tst_qsgturbulence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/particles/qsgturbulence/tst_qsgturbulence.cpp')
-rw-r--r--tests/auto/particles/qsgturbulence/tst_qsgturbulence.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/particles/qsgturbulence/tst_qsgturbulence.cpp b/tests/auto/particles/qsgturbulence/tst_qsgturbulence.cpp
index 202de29340..155b109ff9 100644
--- a/tests/auto/particles/qsgturbulence/tst_qsgturbulence.cpp
+++ b/tests/auto/particles/qsgturbulence/tst_qsgturbulence.cpp
@@ -66,6 +66,9 @@ void tst_qsgturbulence::test_basic()
//of the Turbulence item remain the same
QCOMPARE(system->groupData[0]->size(), 500);
foreach (QSGParticleData *d, system->groupData[0]->data) {
+ if (d->t == -1)
+ continue; //Particle data unused
+
QVERIFY(d->vx != 0.f);
QVERIFY(d->vy != 0.f);
QCOMPARE(d->lifeSpan, 0.5f);