From: Bartosz Golaszewski Date: Sun, 15 Oct 2017 19:01:44 +0000 (+0200) Subject: tests: line: fix the misc flags test case X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fbd88df695d223f311468a07bb38d534229e044a;p=qemu-gpiodev%2Flibgpiod.git tests: line: fix the misc flags test case Setting the open-drain or open-source flags for input doesn't make any sense as these flags are only valid for output mode. This should actually be checked in the kernel. For now fix the test case. Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/tests-line.c b/tests/tests-line.c index 7d4e3e1..0aaeb98 100644 --- a/tests/tests-line.c +++ b/tests/tests-line.c @@ -402,7 +402,7 @@ static void line_misc_flags(void) TEST_ASSERT_FALSE(gpiod_line_is_open_drain(line)); TEST_ASSERT_FALSE(gpiod_line_is_open_source(line)); - config.request_type = GPIOD_LINE_REQUEST_DIRECTION_INPUT; + config.request_type = GPIOD_LINE_REQUEST_DIRECTION_OUTPUT; config.consumer = TEST_CONSUMER; config.flags = GPIOD_LINE_REQUEST_OPEN_DRAIN;