aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/particles/affectors
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/particles/affectors')
-rw-r--r--tests/benchmarks/particles/affectors/affectors.pro2
-rw-r--r--tests/benchmarks/particles/affectors/tst_affectors.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/benchmarks/particles/affectors/affectors.pro b/tests/benchmarks/particles/affectors/affectors.pro
index 88d260591e..3351228a4b 100644
--- a/tests/benchmarks/particles/affectors/affectors.pro
+++ b/tests/benchmarks/particles/affectors/affectors.pro
@@ -1,4 +1,4 @@
-CONFIG += testcase
+CONFIG += benchmark
TARGET = tst_affectors
SOURCES += tst_affectors.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/benchmarks/particles/affectors/tst_affectors.cpp b/tests/benchmarks/particles/affectors/tst_affectors.cpp
index 1b3ed676dc..475b8d28ec 100644
--- a/tests/benchmarks/particles/affectors/tst_affectors.cpp
+++ b/tests/benchmarks/particles/affectors/tst_affectors.cpp
@@ -90,7 +90,7 @@ void tst_affectors::test_basic()
if (d->t == -1)
continue; //Particle data unused
- if (d->stillAlive())
+ if (d->stillAlive(system))
stillAlive++;
QCOMPARE(d->x, 0.f);
QCOMPARE(d->y, 0.f);
@@ -130,7 +130,7 @@ void tst_affectors::test_filtered()
if (d->t == -1)
continue; //Particle data unused
- if (d->stillAlive())
+ if (d->stillAlive(system))
stillAlive++;
QCOMPARE(d->x, 160.f);
QCOMPARE(d->y, 160.f);