From: Bartosz Golaszewski Date: Thu, 12 Jan 2023 18:15:12 +0000 (+0100) Subject: tests: fix the line config reset test case X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3f216dc91395e4711deef4cfa6ef702580d379df;p=qemu-gpiodev%2Flibgpiod.git tests: fix the line config reset test case We're using testing wrong variables in the reset_config test case. We should be checking the retrieved0 settings which are read back from the line config object. Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/tests-line-config.c b/tests/tests-line-config.c index 4b5b3bd..ed348c8 100644 --- a/tests/tests-line-config.c +++ b/tests/tests-line-config.c @@ -175,9 +175,9 @@ GPIOD_TEST_CASE(reset_config) g_assert_nonnull(retrieved0); gpiod_test_return_if_failed(); - g_assert_cmpint(gpiod_line_settings_get_direction(settings), ==, + g_assert_cmpint(gpiod_line_settings_get_direction(retrieved0), ==, GPIOD_LINE_DIRECTION_INPUT); - g_assert_cmpint(gpiod_line_settings_get_bias(settings), ==, + g_assert_cmpint(gpiod_line_settings_get_bias(retrieved0), ==, GPIOD_LINE_BIAS_PULL_DOWN); gpiod_line_config_reset(config);