mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-19 19:26:36 +02:00
make tests auto terminate
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
#include <mm/services/opengl_renderer.hpp>
|
||||
#include <mm/services/imgui_s.hpp>
|
||||
#include <mm/opengl/render_tasks/imgui.hpp>
|
||||
#include <mm/services/count_down.hpp>
|
||||
|
||||
#include <imgui/imgui.h>
|
||||
|
||||
@ -43,6 +44,11 @@ TEST(imgui_render_task, demowindow) {
|
||||
|
||||
rs.addRenderTask<MM::OpenGL::RenderTasks::ImGuiRT>(engine);
|
||||
|
||||
#ifdef MM_AUTOTEST
|
||||
engine.addService<MM::Services::CountDown>(50); // 50 frames
|
||||
ASSERT_TRUE(engine.enableService<MM::Services::CountDown>());
|
||||
#endif
|
||||
|
||||
engine.run();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user