From: Bartosz Golaszewski Date: Wed, 15 Mar 2023 21:04:06 +0000 (+0100) Subject: tests: fix the test case for gpiod_line_request_reconfigure_lines() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b81978716c7422c2afb649ff36267be62a1b8c1c;p=qemu-gpiodev%2Flibgpiod.git tests: fix the test case for gpiod_line_request_reconfigure_lines() We need to actually pass the line config with different offsets to gpiod_line_request_reconfigure_lines() for the test to make sense. Fixes: 8ef0ca0fae8f ("tests: add more test cases for gpiod_line_request_reconfigure_lines()") Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/tests-line-request.c b/tests/tests-line-request.c index 5af5b94..399e09e 100644 --- a/tests/tests-line-request.c +++ b/tests/tests-line-request.c @@ -585,7 +585,7 @@ GPIOD_TEST_CASE(reconfigure_lines_different_offsets) gpiod_test_line_config_add_line_settings_or_fail(line_cfg, offsets1, 3, NULL); - ret = gpiod_line_request_reconfigure_lines(request, NULL); + ret = gpiod_line_request_reconfigure_lines(request, line_cfg); g_assert_cmpint(ret, ==, -1); gpiod_test_expect_errno(EINVAL); }