The offset field is added for uAPI v2, so extend the test to check that the value returned is correct. Signed-off-by: Kent Gibson <warthog618@xxxxxxxxx> --- tests/tests-event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/tests-event.c b/tests/tests-event.c index a43f865..0e5effe 100644 --- a/tests/tests-event.c +++ b/tests/tests-event.c @@ -570,6 +570,7 @@ GPIOD_TEST_CASE(wait_multiple, 0, { 8 }) ret = gpiod_line_event_read(line, &ev); g_assert_cmpint(ret, ==, 0); g_assert_cmpint(ev.event_type, ==, GPIOD_LINE_EVENT_RISING_EDGE); + g_assert_cmpint(ev.offset, ==, 4); } GPIOD_TEST_CASE(get_fd_when_values_requested, 0, { 8 }) -- 2.28.0