tests: don't allow to generate events of the same type subsequently
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 27 Mar 2019 13:44:40 +0000 (14:44 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 23 Apr 2019 09:47:07 +0000 (11:47 +0200)
commitc62ad3091acd34eabf09bd3a05bafa6a114da781
tree27a07181c8d2e3ca0cfb41fd9db4b9528d45edf3
parent2e2ca25d49c2e1b263009ae8f970871dd45af369
tests: don't allow to generate events of the same type subsequently

Since linux v5.1 the state of simulated lines is tracked by the kernel
and it's no longer possible to generate two subsequent events of the
same type (e.g. two rising edge events one after another). Drop the
event_type parameter from test_set_event() and adjust all users.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
tests/gpiod-test.c
tests/gpiod-test.h
tests/tests-ctxless.c
tests/tests-event.c
tests/tests-gpiomon.c