From: Yu Watanabe Date: Sat, 15 Nov 2025 20:49:33 +0000 (+0900) Subject: test: add missing assertion X-Git-Tag: v259-rc1~41^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F39743%2Fhead;p=thirdparty%2Fsystemd.git test: add missing assertion Follow-up for 5a5cb6ba50594355734ff58487d2272a86b741b1. Fixes CID#1643217. --- diff --git a/src/libsystemd/sd-event/test-event.c b/src/libsystemd/sd-event/test-event.c index eb986c9e082..16bbd1296b1 100644 --- a/src/libsystemd/sd-event/test-event.c +++ b/src/libsystemd/sd-event/test-event.c @@ -1075,7 +1075,7 @@ static int exit_on_idle_defer_handler(sd_event_source *s, void *userdata) { /* Disable ourselves, which should trigger exit-on-idle after the second iteration */ if (*c == 2) - sd_event_source_set_enabled(s, SD_EVENT_OFF); + ASSERT_OK(sd_event_source_set_enabled(s, SD_EVENT_OFF)); return 0; }