Fix SdkIntegration test

This commit is contained in:
Ken Van Hoeylandt 2026-08-24 22:59:14 +02:00
parent 890477c233
commit 8250566549

View File

@ -4,6 +4,8 @@
#include <lvgl_window_manager/window_manager.h>
#include <tactility/check.h>
#include <lvgl.h>
#include <lvgl/widgets/toolbar.h>
@ -24,8 +26,8 @@ int main(int argc, char* argv[]) {
struct TaskEventGroup event_group = {0};
task_event_group_construct(&event_group);
struct AppEventSubscription sub = { .app_instance_id = app_instance_id };
app_event_subscribe(&sub, &event_group);
struct AppEventSubscription sub = {0};
check(app_event_subscribe(&sub, &event_group) == ERROR_NONE);
WindowId window = window_manager_create(app_instance_id, create_widgets, NULL);
@ -43,7 +45,7 @@ int main(int argc, char* argv[]) {
}
window_manager_remove(window);
app_event_unsubscribe(&sub);
check(app_event_unsubscribe(&sub) == ERROR_NONE);
task_event_group_destruct(&event_group);
return 0;