mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-08-24 16:36:39 +02:00
make tests auto terminate
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <mm/services/sdl_service.hpp>
|
||||
#include <mm/services/organizer_scene.hpp>
|
||||
#include <mm/services/opengl_renderer.hpp>
|
||||
#include <mm/services/count_down.hpp>
|
||||
|
||||
#include <mm/fs_const_archiver.hpp>
|
||||
|
||||
@@ -259,6 +260,11 @@ TEST(lite_particles2d, it) {
|
||||
auto& rs = engine.addService<MM::Services::OpenGLRenderer>();
|
||||
ASSERT_TRUE(engine.enableService<MM::Services::OpenGLRenderer>());
|
||||
|
||||
#ifdef MM_AUTOTEST
|
||||
engine.addService<MM::Services::CountDown>(50); // 50 frames
|
||||
ASSERT_TRUE(engine.enableService<MM::Services::CountDown>());
|
||||
#endif
|
||||
|
||||
// load particle types
|
||||
// before addRenderTask<LiteParticle2D>
|
||||
// OR
|
||||
|
Reference in New Issue
Block a user