From 2b0e9172305fc6abf0a2e8bba89008fbadbe8be2 Mon Sep 17 00:00:00 2001 From: Paul Lemire Date: Tue, 14 Jun 2016 12:06:14 +0200 Subject: Fix threadpooler test to work with QT3D_JOBS_RUN_STATS Change-Id: I0f5b949af420f162193403328815568c1c89eb5a Reviewed-by: Paul Lemire --- tests/auto/core/threadpooler/tst_threadpooler.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/auto/core/threadpooler/tst_threadpooler.cpp b/tests/auto/core/threadpooler/tst_threadpooler.cpp index 6dc7925b2..2fc6e8c3b 100644 --- a/tests/auto/core/threadpooler/tst_threadpooler.cpp +++ b/tests/auto/core/threadpooler/tst_threadpooler.cpp @@ -37,6 +37,7 @@ #include #include +#include #include #include #include @@ -56,8 +57,8 @@ private: Qt3DCore::QAspectJobManager *m_jobManager; private Q_SLOTS: - void init(); - void cleanup(); + void initTestCase(); + void cleanupTestCase(); void defaultPerThread(); void defaultAspectQueue(); @@ -178,12 +179,12 @@ void massTestFunction(QVector3D *data) data->setZ(result.z()); } -void tst_ThreadPooler::init() +void tst_ThreadPooler::initTestCase() { m_jobManager = new JobManager(this); } -void tst_ThreadPooler::cleanup() +void tst_ThreadPooler::cleanupTestCase() { delete m_jobManager; } -- cgit v1.2.3