]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add missing assertion 39743/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 15 Nov 2025 20:49:33 +0000 (05:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 15 Nov 2025 20:51:22 +0000 (05:51 +0900)
Follow-up for 5a5cb6ba50594355734ff58487d2272a86b741b1.
Fixes CID#1643217.

src/libsystemd/sd-event/test-event.c

index eb986c9e082421e2660aa8b391afaed9ccfa727e..16bbd1296b139547cd3df2eee7005e128f9181f8 100644 (file)
@@ -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;
 }