From 6697cad212e9b06626f08783911e861186407a8d Mon Sep 17 00:00:00 2001 From: zhangbin Date: Fri, 25 Sep 2015 18:23:13 +0800 Subject: [PATCH] Solve the crash of performance-tests on windows. --- .../Classes/tests/PerformanceParticleTest.cpp | 6 ++++++ .../Classes/tests/PerformanceParticleTest.h | 1 + 2 files changed, 7 insertions(+) diff --git a/tests/performance-tests/Classes/tests/PerformanceParticleTest.cpp b/tests/performance-tests/Classes/tests/PerformanceParticleTest.cpp index 78beba707b7e..b5e66b446a3a 100644 --- a/tests/performance-tests/Classes/tests/PerformanceParticleTest.cpp +++ b/tests/performance-tests/Classes/tests/PerformanceParticleTest.cpp @@ -43,6 +43,12 @@ PerformceParticleTests::PerformceParticleTests() // ParticleMainScene // //////////////////////////////////////////////////////// +ParticleMainScene::ParticleMainScene() +: particleSize(4) +{ + +} + bool ParticleMainScene::init() { if (TestCase::init()) diff --git a/tests/performance-tests/Classes/tests/PerformanceParticleTest.h b/tests/performance-tests/Classes/tests/PerformanceParticleTest.h index b1286f62f2d8..6abdc979f044 100644 --- a/tests/performance-tests/Classes/tests/PerformanceParticleTest.h +++ b/tests/performance-tests/Classes/tests/PerformanceParticleTest.h @@ -8,6 +8,7 @@ DEFINE_TEST_SUITE(PerformceParticleTests); class ParticleMainScene : public TestCase { public: + ParticleMainScene(); virtual bool init() override; virtual void initWithSubTest(int subtest, int particles);