From: Bartosz Golaszewski Date: Mon, 5 Dec 2022 13:56:45 +0000 (+0100) Subject: tests: join the thread at the end of the seqno test case X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2676b86d94680bcb9ee51e51a67243a76af56936;p=qemu-gpiodev%2Flibgpiod.git tests: join the thread at the end of the seqno test case The call to g_thread_join() is missing at the end of the test case for event sequence numbers so add it and fix a resource leak. Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/tests-edge-event.c b/tests/tests-edge-event.c index 66fe075..f39da4f 100644 --- a/tests/tests-edge-event.c +++ b/tests/tests-edge-event.c @@ -519,6 +519,8 @@ GPIOD_TEST_CASE(seqno) g_assert_cmpuint(gpiod_edge_event_get_line_offset(event), ==, 3); g_assert_cmpuint(gpiod_edge_event_get_global_seqno(event), ==, 2); g_assert_cmpuint(gpiod_edge_event_get_line_seqno(event), ==, 1); + + g_thread_join(thread); } GPIOD_TEST_CASE(event_copy)