From 8250566549189a1be363f69dc1bec448376c0cb4 Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Mon, 24 Aug 2026 22:59:14 +0200 Subject: [PATCH] Fix SdkIntegration test --- Tests/SdkIntegration/main/Source/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Tests/SdkIntegration/main/Source/main.c b/Tests/SdkIntegration/main/Source/main.c index a7fdb32c9..54db9bc63 100644 --- a/Tests/SdkIntegration/main/Source/main.c +++ b/Tests/SdkIntegration/main/Source/main.c @@ -4,6 +4,8 @@ #include +#include + #include #include @@ -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;