From fbd88df695d223f311468a07bb38d534229e044a Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Sun, 15 Oct 2017 21:01:44 +0200 Subject: [PATCH] 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 --- tests/tests-line.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2