From: Bartosz Golaszewski Date: Fri, 12 Apr 2019 08:05:30 +0000 (+0200) Subject: tests: event: make test cases work with linux v5.1 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=79071eea5dceccf925bec2dd178aeaeebdc6f789;p=qemu-gpiodev%2Flibgpiod.git tests: event: make test cases work with linux v5.1 Make all event test cases work with the recent changes to gpio-mockup introduced in linux v5.1. Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/tests-event.c b/tests/tests-event.c index af80904..b97b6f8 100644 --- a/tests/tests-event.c +++ b/tests/tests-event.c @@ -3,6 +3,7 @@ * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski + * Copyright (C) 2019 Bartosz Golaszewski */ /* Test cases for GPIO line events. */ @@ -200,7 +201,7 @@ static void event_get_value_active_low(void) TEST_ASSERT_EQ(ev.event_type, GPIOD_LINE_EVENT_FALLING_EDGE); rv = gpiod_line_get_value(line); - TEST_ASSERT_EQ(rv, 0); + TEST_ASSERT_EQ(rv, 1); } TEST_DEFINE(event_get_value_active_low, "events - mixing events and gpiod_line_get_value() (active-low flag)",