tests/integration: Indicate that callback quits main loop

on_event_triggered() is renamed to on_event_triggered_quit()
as we will shortly introduce a variant that does not quit.
This commit is contained in:
Evangelos Ribeiro Tzaras
2022-11-09 11:50:10 +01:00
parent 4d95249bdd
commit 15d33f4f85
+3 -3
View File
@@ -123,7 +123,7 @@ test_lfb_integration_event_not_found (void)
} }
static void static void
on_event_triggered (LfbEvent *event, on_event_triggered_quit (LfbEvent *event,
GAsyncResult *res, GAsyncResult *res,
LfbEvent **cmp) LfbEvent **cmp)
{ {
@@ -179,7 +179,7 @@ test_lfb_integration_event_async (void)
event0 = lfb_event_new ("test-dummy-0"); event0 = lfb_event_new ("test-dummy-0");
lfb_event_trigger_feedback_async (event0, lfb_event_trigger_feedback_async (event0,
NULL, NULL,
(GAsyncReadyCallback)on_event_triggered, (GAsyncReadyCallback)on_event_triggered_quit,
&cmp1); &cmp1);
g_main_loop_run (mainloop); g_main_loop_run (mainloop);
/* The async finish callback saw the right event */ /* The async finish callback saw the right event */
@@ -195,7 +195,7 @@ test_lfb_integration_event_async (void)
/* The async callback ends the main loop */ /* The async callback ends the main loop */
lfb_event_trigger_feedback_async (event10, lfb_event_trigger_feedback_async (event10,
NULL, NULL,
(GAsyncReadyCallback)on_event_triggered, (GAsyncReadyCallback)on_event_triggered_quit,
&cmp2); &cmp2);
g_main_loop_run (mainloop); g_main_loop_run (mainloop);