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:
@@ -7,6 +7,7 @@
|
||||
#include <mm/services/filesystem.hpp>
|
||||
#include <mm/services/opengl_renderer.hpp>
|
||||
#include <mm/services/imgui_s.hpp>
|
||||
#include <mm/services/count_down.hpp>
|
||||
|
||||
#include <mm/opengl/render_tasks/imgui.hpp>
|
||||
|
||||
@@ -68,6 +69,11 @@ TEST(imgui_widgets, basic) {
|
||||
engine.addService<TestWindow>();
|
||||
ASSERT_TRUE(engine.enableService<TestWindow>());
|
||||
|
||||
#ifdef MM_AUTOTEST
|
||||
engine.addService<MM::Services::CountDown>(50); // 50 frames
|
||||
ASSERT_TRUE(engine.enableService<MM::Services::CountDown>());
|
||||
#endif
|
||||
|
||||
engine.run();
|
||||
|
||||
sdl_ss.destroyWindow();
|
||||
|
Reference in New Issue
Block a user